Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-54282

-Wunused-result shouldn't ignore --disable-warnings-as-errors

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Fully Compatible
    • Dev Platform 2021-02-22

      We are currently forcing clang builds (and only clang builds) to use -Werror=unused-result (https://github.com/mongodb/mongo/blob/master/SConstruct#L2388-L2389) which ignores the --disable-warnings-as-errors. I always generate my compile_commands.json with that flag so that my editor shows errors and warnings differently.

            Assignee:
            ryan.egesdahl@mongodb.com Ryan Egesdahl (Inactive)
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: