Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1044

Enable -Werror for clang on Evergreen

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.6.0
    • Affects Version/s: None
    • Component/s: None
    • None

      Evergreen is now running with -Werror for GCC (on linux and solaris) successfully – but clang emits a handful of other warnings such as:

       [2015/12/09 05:48:58.793] src/bson/bson-reader.c:345:33: warning: cast from 'bson_reader_t *' to 'bson_reader_handle_t *' increases required alignment from 8 to 128 [-Wcast-align]
       [2015/12/09 05:48:58.793]    bson_reader_handle_t *real = (bson_reader_handle_t *)reader;
      

      and

       [2015/12/09 05:49:20.057] tests/test-mongoc-collection.c:604:46: warning: format string is not a string literal [-Wformat-nonliteral]
       [2015/12/09 05:49:20.057]    gle_json_formatted = bson_strdupv_printf (gle_json, args);
       [2015/12/09 05:49:20.057]                                              ^~~~~~~~
      

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: