diff options
author | Jim Meyering <meyering@redhat.com> | 2010-12-22 11:10:23 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-12-22 11:10:23 +0100 |
commit | 51f60a62372581fc7260f4c0eae52f06c39201ec (patch) | |
tree | d8424cb919d32cfe804c2f8c8889bc5b85de9518 /gnulib-tests | |
parent | 056caf4857369fb7e549bc6e5cbfd997185e6019 (diff) | |
download | coreutils-51f60a62372581fc7260f4c0eae52f06c39201ec.tar.xz |
tests: adjust preceding change to handle general WERROR_CFLAGS values
* gnulib-tests/Makefile.am (test_xvasprintf_CFLAGS):
(test_lock_CFLAGS, test_tls_CFLAGS): Avoid a syntax error when
$(WERROR_CFLAGS) expands to more than one token.
Diffstat (limited to 'gnulib-tests')
-rw-r--r-- | gnulib-tests/Makefile.am | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnulib-tests/Makefile.am b/gnulib-tests/Makefile.am index 311baf95c..edaa0a726 100644 --- a/gnulib-tests/Makefile.am +++ b/gnulib-tests/Makefile.am @@ -9,12 +9,12 @@ AM_CFLAGS = $(GNULIB_TEST_WARN_CFLAGS) $(WERROR_CFLAGS) # test-xvasprintf.c:100: error: format not a string literal and no \ # format arguments [-Wformat-security] test_xvasprintf_CFLAGS = $(AM_CFLAGS) \ - `test X$(WERROR_CFLAGS) = X || echo ' -Wno-format-security'` + `test -n '$(WERROR_CFLAGS)' && echo ' -Wno-format-security'` # test-lock.c: In function 'lock_mutator_thread': # test-lock.c:148: error: cast from function call of type 'pthread_t' to \ # non-matching type 'void *' [-Wbad-function-cast] test_lock_CFLAGS = $(AM_CFLAGS) \ - `test X$(WERROR_CFLAGS) = X || echo ' -Wno-bad-function-cast'` + `test -n '$(WERROR_CFLAGS)' && echo ' -Wno-bad-function-cast'` test_tls_CFLAGS = $(AM_CFLAGS) \ - `test X$(WERROR_CFLAGS) = X || echo ' -Wno-bad-function-cast'` + `test -n '$(WERROR_CFLAGS)' && echo ' -Wno-bad-function-cast'` |