BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES redefined

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.2.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              Hannes Magnusson (Inactive)
              Reporter:
              Hannes Magnusson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: