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

Warnings generated by headers when compiling the C++ driver

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      While investigating the warnings produced when compiling the C++ driver, we noticed that a large number of the warnings were actually in the libbson header files rather than from within our own source tree. Specifically, we found the following counts of errors when compiling with clang 3.9 on Linux and the flags `-Wall -Wextra -Wconversion -Wnarrowing -pedantic`:

      555 macro expansion producing 'defined' has undefined behavior
      555 implicit conversion changes signedness
      222 implicit conversion loses integer precision

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: