"####################\n"),
footer => "\nPlease contact <bug-automake\@gnu.org>.";
-# Warnings about unsupported (or mis-supported) features.
-register_channel 'unsupported', type => 'warning';
-# Unused variables.
-register_channel 'unused', type => 'warning';
+# Warnings related to GNU Coding Standards.
+register_channel 'gnu', type => 'warning';
# Warnings about obsolete features (silent by default).
register_channel 'obsolete', type => 'warning', silent => 1;
# Warnings about non-portable constructs.
register_channel 'portability', type => 'warning', silent => 1;
-# Warnings related to GNU Coding Standards.
-register_channel 'gnu', type => 'warning';
+# Weird syntax, unused variables, typos...
+register_channel 'syntax', type => 'warning';
+# Warnings about unsupported (or mis-supported) features.
+register_channel 'unsupported', type => 'warning';
# For &verb.
register_channel 'verb', type => 'debug', silent => 1;
foreach my $primary ('_SOURCES', '_LIBADD', '_LDADD', '_LDFLAGS',
'_DEPENDENCIES')
{
- msg_var 'unused', $varname, "unused variable: `$varname'"
+ msg_var 'syntax', $varname, "unused variable: `$varname'"
# Note that a configure variable is always legitimate.
if ($varname =~ /$primary$/ && ! $content_seen{$varname}
&& ! exists $configure_vars{$varname});
# to create rules for things like `bin_PROGRAMS = LDADD'.
if ($target_owner{$var}{$tcond} == TARGET_USER)
{
- err_cond_target ($tcond, $var, "`$var' is a target; "
+ msg_cond_target ('syntax', $tcond, $var,
+ "`$var' is a target; "
. "expected a variable");
return 0;
}
Warning categories include:
`gnu' GNU coding standards (default in gnu and gnits modes)
`obsolete' obsolete features or constructions
- `unsupported' unsupported or incomplete features (default)
- `unused' unused variables (default)
`portability' portability issues
+ `syntax' dubious syntactic constructs (default)
+ `unsupported' unsupported or incomplete features (default)
`all' all the warnings
`no-CATEGORY' turn off warnings in CATEGORY
`none' turn off all the warnings
(@pxref{Top, , , standards, The GNU Coding Standards}).
@item obsolete
obsolete features or constructions
-@item unsupported
-unsupported or incomplete features
-@item unused
-unused variables
@item portability
portability issues (e.g., use of Make features which are known not portable)
+@item syntax
+weird syntax, unused variables, typos
+@item unsupported
+unsupported or incomplete features
@item all
all the warnings
@item none
@end table
A category can be turned off by prefixing its name with @samp{no-}. For
-instance @samp{-Wno-unused} will hide the warnings about unused
+instance @samp{-Wno-syntax} will hide the warnings about unused
variables.
-The categories output by default are @samp{unsupported} and
-@samp{unused}. Additionally, @samp{gnu} is enabled in @samp{--gnu} and
+The categories output by default are @samp{syntax} and
+@samp{unsupported}. Additionally, @samp{gnu} is enabled in @samp{--gnu} and
@samp{--gnits} strictness.
@samp{portability} warnings are currently disabled by default, but they