KEMBAR78
BUILD: Disable -Wshadow and -Wmissing-field-initializers before GCC 5 by dwatteau · Pull Request #4779 · scummvm/scummvm · GitHub
Skip to content

Conversation

@dwatteau
Copy link
Contributor

@dwatteau dwatteau commented Mar 6, 2023

The -Wshadow and -Wmissing-field-initializers GCC flags gave many false positives before GCC 5, and this creates a lot of irrelevant noise in the build logs. See the Ubuntu 20.04 g++ 4.8 CI for an example, or the Dreamcast or RISC OS buildbots. Even Linus complained about the old -Wshadow at the time.

The flags are now only enabled on Clang builds and GCC >= 5 builds.

They just gave many false positives creating a lot of noise in build
logs for ports using an older GCC.
@digitall
Copy link
Member

digitall commented Mar 7, 2023

This looks like a pretty reasonable change. I admit the inverted Wno-* bit threw me for a second, but as far as I can see this should be fine.

@digitall digitall requested a review from sev- March 7, 2023 19:30
@sev-
Copy link
Member

sev- commented Mar 7, 2023

Thanks!

@sev- sev- merged commit a5106d8 into scummvm:master Mar 7, 2023
@dwatteau dwatteau deleted the feat/build-no-Wshadow-before-gcc5 branch March 7, 2023 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants