4 ms·
GHC (Haskell) has -Weverything which is great for this. I’d much rather get all warnings and blacklist the few I don’t want
by MaxGabriel 7y ago
GHC (Haskell) has -Weverything which is great for this. I’d much rather get all warnings and blacklist the few I don’t want
- ridiculous_fish 7y ago-Weverything is also part of clang. An example of a warning is "this struct has a padding byte between these two fields." A blacklist would be painful. -Weverything should be thought of as a tool for discovering new warning flags relevant to your project. Add those flags, but don't enable -Weverything for routine builds, unless you're a masochist.
- cpeterso 7y agoBarrow/compiler-warnings is a nice reference for all Chang and gcc warning flags, which flags implicitly enable other warnings, and in which compiler version they were added: https://github.com/Barro/compiler-warnings/ https://github.com/Barro/compiler-warnings/