]> git.saurik.com Git - bison.git/commit - tests/atlocal.in
build: simplify and improve the compiler warnings for tests.
authorAkim Demaille <akim@lrde.epita.fr>
Tue, 27 Mar 2012 14:20:34 +0000 (16:20 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Fri, 30 Mar 2012 12:55:57 +0000 (14:55 +0200)
commite85056ef5fe3ddf7563a217b941c27de7d7b3cb5
treec516c1451dd752a230aa3eded561d3e3a8443343
parent62e5fc6ac9bd59f801ca43e7eb81d19960f3e306
build: simplify and improve the compiler warnings for tests.

* configure.ac (warn_common, warn_c, warn_cxx): New.
Use them to compute independently the options supported
by the C and C++ compilers.
Don't AC_SUBST the variables passed to gl_WARN_ADD: it
does it for us.
(WARN_CFLAGS_TEST, WARN_CXXFLAGS_TEST): Don't aggregate
$WARN_CFLAGS and $WARN_CXXFLAGS in them now, leave it
to atlocal.in.
(O0CFLAGS, O0CXXFLAGS): Move their definition to...
* tests/atlocal.in: here.
Be more systematic between C and C++.
Reorder to factor between variables.
Propagate all of the variables when --compile-c-with-cxx.
configure.ac
tests/atlocal.in