Warnings in the C++ Front-End and GCC in General

Peter Simons peter.simons@gmd.de
Wed Sep 9 22:55:00 GMT 1998


-----BEGIN PGP SIGNED MESSAGE-----

>>>>> Martin von Loewis writes:

 > If one has to change sources and header files anyway, one could
 > just fix the code instead of disabling the warning in many cases.

Unfortunately it isn't that easy in all cases. I am using code
generators for various purposes, especially generating parsers. The
code generated by those programs notoriouly spits outs myriads of
warnings like "unused variable" and others. Being able to disable
those would be a benefit, especially if I could do it for certain
parts of the source code only.

Many users who have to compile my program don't know C/C++ very well,
if at all, and seeing dozens of warnings rushing by is disturbing for
them. I don't want to disable all warnings, though, because on some
platforms useful warnings might occur, because of varying data type
sizes, etc...

	-peter

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: latin1

iQCVAwUBNfbisg9HL1s0103BAQExLAQApr1PFAmZaXyo2b1xROu3uzQqRg4sjZnI
7+yDj39bGgTWHc7GRFimJZLLFQgERQmEudYUkQiCJRZhD+QseiG5QhSuPAWdz6zL
kemsur0Ow2fzrfkenxMz3L671A6TNuIYjdh6hDtflAjz/TOvtqxJBWDJDyxa34Db
R6Kg7hp8UaI=
=ZfLg
-----END PGP SIGNATURE-----



More information about the Gcc mailing list