https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46097
--- Comment #33 from Jonathan Wakely <redi at gcc dot gnu.org> --- Write a plugin. It's trivial using gcc-python-plugin, see http://blog.cuviper.com/2014/01/23/add-new-warnings-to-gcc-with-python/ A custom plugin is far more suitable to your purpose than adding yet another option to GCC that has to be maintained and tested forever when most people aren't interested in it.