]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
test: Silence warning from Clang
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 27 Jul 2016 09:55:17 +0000 (11:55 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 27 Jul 2016 18:13:33 +0000 (20:13 +0200)
test.sh

diff --git a/test.sh b/test.sh
index f2335f1f71c77de524091eee181199573900474d..f4a6e53c9586a0826aaa9274074c0d928db0d1af 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -1561,12 +1561,12 @@ EOF
     # ccache could try to parse and make sense of -Wp, with multiple arguments,
     # but it currently doesn't, so we have to disable direct mode.
 
-    $CCACHE_COMPILE -c -Wp,-DFOO,-DGOO test.c
+    $CCACHE_COMPILE -c -Wp,-DFOO,-DGOO test.c 2>/dev/null
     expect_stat 'cache hit (direct)' 0
     expect_stat 'cache hit (preprocessed)' 0
     expect_stat 'cache miss' 1
 
-    $CCACHE_COMPILE -c -Wp,-DFOO,-DGOO test.c
+    $CCACHE_COMPILE -c -Wp,-DFOO,-DGOO test.c 2>/dev/null
     expect_stat 'cache hit (direct)' 0
     expect_stat 'cache hit (preprocessed)' 1
     expect_stat 'cache miss' 1