tests: do not assume compiler knows -Wxxx flags
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 22 Dec 2010 09:48:27 +0000 (01:48 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 22 Dec 2010 09:48:54 +0000 (01:48 -0800)
commit056caf4857369fb7e549bc6e5cbfd997185e6019
tree5e75af757d7cdd279b7229bdc5f9c2e08704a6f4
parenta300cfd43ccb3f48f5110a2abf6fe234fece3dc3
tests: do not assume compiler knows -Wxxx flags

* gnulib-tests/Makefile.am (test_xvasprintf_CFLAGS):
(test_lock_CFLAGS, test_tls_CFLAGS): Do not append GCC-specific
flags like -Wno-format-security unless the GCC-specific flag
-Werror is also specified.  This avoids a "make check" failure on
Solaris when using Sun C 5.8.
gnulib-tests/Makefile.am