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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • Build
    • None
    • Fully Compatible
    • Dev Platform 2021-02-22

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: