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

Add -Wshadow to compilation

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Build
    • None
    • Build
    • Fully Compatible
    • ALL
    • Platforms 2017-07-10

    Description

      -Wshadow is supported by both Clang and GCC, and seems like a reasonable warning to add. AFAIK there are only a few violations of this warning today – which should be easily fixable.

      This could be done as part of a larger effort to evaluate newly added warnings to recent versions of clang/gcc.

      Attachments

        Activity

          People

            Unassigned Unassigned
            milkie@mongodb.com Eric Milkie
            Votes:
            1 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated: