by the final warning state after processing all the toplevel
input files (including Final.sd.mk).
-&:local+global [&]VARIABLE ...
+&:local+global [!][&]VARIABLE ...
Suppresses any warnings relating to forthcoming mentions
to VARIABLE or &VARIABLE, as applicable. Scope ends at
the end of the current directory's Suffix.sd.mk.
+ Prefixing with ! removes [&]VARIABLE from the suppresion list.
&:changequote NEWQUOTE
changes the escape sequence from & to literally NEWQUOTE
next;
} elsif (s#^\s*$esc\:local\+global\s+(\S.*)$##) {
foreach my $vn (split /\s+/, $1) {
+ my $pos = !($vn =~ s{^!}{});
my $amp = $vn =~ s{^$esc}{};
- $varref_exp{$vn}{!!$amp} = 1;
+ $varref_exp{$vn}{!!$amp} = $pos;
}
next;
} elsif (s#^\s*$esc\:(?=(-?)include|macro)##) {
saw &WARN at ./Dir.sd.mk:10
saw &WARN at ./Dir.sd.mk:11
saw &WARN at ./sub/dir/Dir.sd.mk:15
+ saw &WARN at ./sub/dir/Dir.sd.mk:24
subdirmk: warning (unknown-warning): ./sub/dir/Dir.sd.mk:3: attempt to suppress unknown warning(s) `some-unknown-warning'
$(NOWARN1)
+sub_dir_WARN += 6
+
# doctests:
# Suffix in sub/dir
$(NOWARN1)
+&:local+global !&WARN
+&WARN += 6
+
# doctests:
&:include &doctests.sd.mk