Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-540

Clang errors on unknown options (-Wno-unused-but-set-variable)

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2.4
    • Affects Version/s: 1.1.2
    • Component/s: None
    • None
    • Environment:
      OSX, Clang

      trying to build the driver with clang on osx errors on unrecognized warning flag -Wno-unused-but-set-variable

      OUTPUT:

      error: unknown warning option '-Wno-unused-but-set-variable'; did you mean
            '-Wno-unused-const-variable'? [-Werror,-Wunknown-warning-option]
      make: *** [src/MongoDB/ReadConcern.lo] Error 1
      error: unknown warning option '-Wno-unused-but-set-variable'; did you mean
            '-Wno-unused-const-variable'? [-Werror,-Wunknown-warning-option]
      error: unknown warning option '-Wno-unused-but-set-variable'; did you mean
            '-Wno-unused-const-variable'? [-Werror,-Wunknown-warning-option]
      make: *** [src/MongoDB/Query.lo] Error 1
      error: unknown warning option '-Wno-unused-but-set-variable'; did you mean
            '-Wno-unused-const-variable'? [-Werror,-Wunknown-warning-option]
      make: *** [src/MongoDB/Manager.lo] Error 1
      make: *** [src/MongoDB/CursorId.lo] Error 1
      error: unknown warning option '-Wno-unused-but-set-variable'; did you mean
            '-Wno-unused-const-variable'? [-Werror,-Wunknown-warning-option]
      make: *** [src/MongoDB/ReadPreference.lo] Error 1
      

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            william.banfield William Banfield
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: