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

Warnings generated by headers when compiling the C++ driver

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jesse A. Jesse Jiryu Davis
              Reporter:
              sam.rossi Samuel Rossi
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: