Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-181

Couple of new compiler warnings

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.2.0
    • Affects Version/s: 0.1.5
    • Component/s: None
    • None

      /Users/bjori/Source/phongo/php_phongo.c:493:17: warning: assigning to 'mongoc_write_concern_t *' (aka 'struct _mongoc_write_concern_t *') from 'const mongoc_write_concern_t *'
            (aka 'const struct _mongoc_write_concern_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                      write_concern = mongoc_client_get_write_concern(client);
                                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /Users/bjori/Source/phongo/php_phongo.c:1069:47: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                      add_assoc_string_ex(retval, ZEND_STRS("w"), wtag, 1);
                                                                  ^~~~
      /usr/local/p/versions/5.6-dev/include/php/Zend/zend_API.h:384:82: note: passing argument to parameter 'str' here
      ZEND_API int add_assoc_string_ex(zval *arg, const char *key, uint key_len, char *str, int duplicate);
                                                                                       ^
      2 warnings generated.
      

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: