I\'m working on a large collaborative C++ project that is both developed and run on various flavors of Linux, OS X and Windows. We compile across these platforms with GCC, Visua
You can make pedantic warnings into errors with -pedantic-errors
. This will prevent developers from ignoring it. For that matter you could make all warnings into errors as well with -Werror
although that can be counter productive in some cases (maybe not in yours though).
Overall, I think, as far as adhering to a strict standard goes, the -pedantic
options are the most helpful.