Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #19044

Closed (moved)
(moved)
Open
Created May 12, 2016 by John Brooks@special

Turn on --enable-gcc-warnings-advisory by default

I've had multiple patches fail due to missing the --enable-gcc-warnings flag in builds. I've also missed really important problems that these warnings would tell me about.

Turning on --enable-gcc-warnings by default is probably not a good choice, because GCC warnings vary quite a lot between versions and -Werror will cause these new warnings to break builds.

Without -Werror, there's no harm in enabling all of these warnings by default, and this makes us more likely to notice important warnings. We should do it.

I suggest:

  1. Make the behavior of --enable-gcc-warnings-advisory default when supported by the compiler
  2. Add an --enable-fatal-warnings option to turn on -Werror
  3. Alias --enable-gcc-warnings to --enable-fatal-warnings for backwards compatibility
  4. Deprecate or ignore --enable-gcc-warnings-advisory
  5. Optionally, we could have a --disable-extra-warnings flag, if there's a case where someone wants to turn off these warnings
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking