1include gnulib.mk 2 3AM_CFLAGS = $(GNULIB_TEST_WARN_CFLAGS) $(WERROR_CFLAGS) 4 5# A few tests are inherently warning-evoking. 6# In the typical case where we use -Werror, exempt the few offenders. 7 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] 11test_xvasprintf_CFLAGS = $(AM_CFLAGS) \ 12 `test -n '$(WERROR_CFLAGS)' && echo ' -Wno-format-security'` 13 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] 17test_lock_CFLAGS = $(AM_CFLAGS) \ 18 `test -n '$(WERROR_CFLAGS)' && echo ' -Wno-bad-function-cast'` 19test_tls_CFLAGS = $(AM_CFLAGS) \ 20 `test -n '$(WERROR_CFLAGS)' && echo ' -Wno-bad-function-cast'` 21