maint: use an optimal-for-coreutils xz compression setting
[coreutils/ericb.git] / gnulib-tests / Makefile.am
blobedaa0a72697aad0279acae69a2181d4895b2d68e
1 include gnulib.mk
3 AM_CFLAGS = $(GNULIB_TEST_WARN_CFLAGS) $(WERROR_CFLAGS)
5 # A few tests are inherently warning-evoking.
6 # In the typical case where we use -Werror, exempt the few offenders.
8 # test-xvasprintf.c: In function 'test_xasprintf':
9 # test-xvasprintf.c:100: error: format not a string literal and no \
10 #   format arguments [-Wformat-security]
11 test_xvasprintf_CFLAGS = $(AM_CFLAGS) \
12   `test -n '$(WERROR_CFLAGS)' && echo ' -Wno-format-security'`
14 # test-lock.c: In function 'lock_mutator_thread':
15 # test-lock.c:148: error: cast from function call of type 'pthread_t' to \
16 #   non-matching type 'void *' [-Wbad-function-cast]
17 test_lock_CFLAGS = $(AM_CFLAGS) \
18   `test -n '$(WERROR_CFLAGS)' && echo ' -Wno-bad-function-cast'`
19 test_tls_CFLAGS = $(AM_CFLAGS) \
20   `test -n '$(WERROR_CFLAGS)' && echo ' -Wno-bad-function-cast'`