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

Address new GCC8 -Wparentheses warnings

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0-rc0
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Fully Compatible
    • Platforms 2018-05-21

      We don't want to disable this because it is a valuable warning. It is the one that warns on if (x = 5) for example. This warning only trips in third_party headers so I plan to use the same suppression style as boost added: https://github.com/boostorg/mpl/blob/3c1910797cf2a9e6f18a0a929bec95837accfb9e/include/boost/mpl/assert.hpp#L187-L206

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: