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

Warnings generated by headers when compiling the C++ driver

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: