3 ms·
> This is GNU's idea of "all". Unfortunately, over the years people baked the semantics of -Wall into their builds so new diagnostics could not be added to tha
by gumby 5y ago
> This is GNU's idea of "all".
Unfortunately, over the years people baked the semantics of -Wall into their builds so new diagnostics could not be added to that flag.
And clang’s -Weverything shows how the opposite can fail as well
- not2b 5y agoThere are some very wrong-headed warning options in gcc, such that turning them on and avoiding getting them will make your code worse. So -Wall means 'all recommended warnings'. Also there are some warnings that won't be produced if you compile without optimization, because the needed analysis isn't performed.
- account42 5y agoAnd yet we have things like -Wmaybe-uninitialized in -Wall which by definition will occasionally warn on perfectly good code.