]> git.ipfire.org Git - thirdparty/autoconf.git/commit
Disable all warnings when running autoconf as a subprocess.
authorZack Weinberg <zackw@panix.com>
Mon, 21 Sep 2020 20:59:46 +0000 (16:59 -0400)
committerZack Weinberg <zackw@panix.com>
Tue, 22 Sep 2020 19:46:43 +0000 (15:46 -0400)
commit218cc1e49224765788aa368fe4a2e27c6652df5d
tree222b0f2225dfbd01f2e09e9657657cb3b932db28
parent53f18e7889ef1a64bb9273cc8a81e750d78a6333
Disable all warnings when running autoconf as a subprocess.

autoheader and autoscan both run autoconf in trace mode, and
autoheader makes a point of passing down the warnings options.
This means autoheader prints warnings that a regular invocation
of autoconf would also print, so in the common case where both
are being run by autoreconf, the warnings are duplicated.
autoscan doesn’t pass down warnings options but it _does_ leave
the WARNINGS environment variable alone, which means it may issue
completely spurious warnings because the configure script is still
under construction.

Change this so that both programs disable all warnings for the
subsidiary invocation of autoconf, by not passing any warnings
options themselves, and by setting the WARNINGS environment variable
to “none” for the subprocess.  For this to work correctly, the
‘args: --warnings syntax’ line has to be removed from autom4te.cfg
(m4sugar section).  Since syntax warnings are on by default anyway,
the sole effect of this is to allow WARNINGS=none to turn off syntax
warnings.

The test suite changes are all to remove expectations of duplicate
diagnostics from autoheader.

* bin/autoheader.in: Do not pass warnings options down to subsidiary
  autoconf, and set WARNINGS=none in the environment for that process.
* bin/autoscan.in: Set WARNINGS=none in the environment for subsidiary
  autoconf.
* lib/autom4te.in (M4sugar): Remove ‘--warnings syntax’.
* tests/semantics.at, tests/torture.at: No longer expect various
  diagnostics from autoheader as well as autoconf.
bin/autoheader.in
bin/autoscan.in
lib/autom4te.in
tests/semantics.at
tests/torture.at