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

BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES redefined

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

      The BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES checks seems broken:

      ./src/bson/bson-config.h:49:0: warning: "BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES" redefined [enabled by default]
      

      When its supposed to be used, it is passed as a compiler option -DBSON_PTHREAD_ONCE_INIT_NEEDS_BRACES and incorrectly (unconditionally) set to 0 in our bson-config.h[.in] (hence the warning), which results in it being undef'd in bson-config.h.

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

              Created:
              Updated:
              Resolved: