Skip to content

Comment on The most useful GCC options and extensionsparent

Comments

Isn't the whole point of -Wall -Wextra to include all the warnings? It seems rather unfortunate to have to add a bunch more flags to do what I want.

I thought so too. But even -Wextra does not include everything. Some Flags can certainly be a bit annoying (e.g., -Weffc++). A project I'm currently working on has a really long list of additional warning flags. But for manual calls to g++ such a long list is not practical however with the GCC spec file one should be able to add something like -Wextreme.

Clang has -Weverything which does indeed include everything.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.