This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Additional GCC warnings?
- From: David Taylor <dtaylor at emc dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 20 Mar 2003 14:31:49 -0500
- Subject: Additional GCC warnings?
EMC has, in house, added several new warnings to GCC. Are people
generally in favor of adding new warnings to GCC? If yes, then
assuming the implementation/etc is acceptable, which of the following
would people be interested in seeing patches for?
-Waggregate-passed-by-value / -Wno-aggregate-passed-by-value
Warn if an aggregate parameter is passed by value rather than
by reference.
-Wenum-mismatch / -Wno-enum-mismatch
Warn when value assigned to a variable of an enumeral type doesn't
correspond to an enumerator
-Wprecision-mismatch / -Wno-precision-mismatch
Warn when the precision of the destination is smaller than
the precision of the source.
-Winclude-depth-exceeds=<n>
Warn if the number of nested levels of #include'd files exceeds
<n>. Warning can be suppressed by #pragma include_depth_check_off
and re-enabled by #pragma include_depth_check_on.
-Wpointer-cast-to-signed / -Wno-pointer-cast-to-signed
Warn about any casting of pointer type data to a signed entity
There are probably others, too. But, the above is a start.
Later,
David
--
David Taylor
dtaylor at emc dot com