warning control project status

DJ Delorie dj@redhat.com
Fri Jul 22 17:32:00 GMT 2005


http://gcc.gnu.org/wiki/Warning%20Message%20Control

Functionality supported:

* Control of warnings through OPT_* values passed to warning().

* Display of command line options corresponding to printed warnings
  through -fdiagnostics-show-option.

Warning conversion:

		# OPT	# Zero	% done

top files	224	175	56 %
all files	306	544	36 %

ada		  0	  1
config		 67	121	36 %
cp		 13	172	 7 %
fortran		  0	  4
java		  2	 19
objc		  0	 51
treelang	  0	  1


Functionality currently planned for 4.2:

* -Werror-foo to turn -Wfoo warnings into errors.  Matching
  -Wno-error-foo for use with -Werror.

* #pragma for limited control of -W* and -Werror-*

The idea behind these is that you'd have a .h file that defines your
"acceptable warnings" policy, that everyone includes right at the top
of each source file, with individual source files being able to make
exceptions.



More information about the Gcc mailing list