]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
-Wall isn't portable, but running -O twice is
authorAndrew Tridgell <tridge@samba.org>
Fri, 28 Mar 2003 12:25:27 +0000 (13:25 +0100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 28 Mar 2003 12:25:27 +0000 (13:25 +0100)
test.sh

diff --git a/test.sh b/test.sh
index ef1a743415f868f0ed9c8701b1b8a3cbfdabbd5c..7a112341a5d9474d73d6bad191dbf8907c84d038 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -131,21 +131,21 @@ basetests() {
     checkstat 'cache hit' 4 
 
     testname="CCACHE_CPP2"
-    CCACHE_CPP2=1 $CCACHE_COMPILE -c test1.c -O -Wall
+    CCACHE_CPP2=1 $CCACHE_COMPILE -c test1.c -O -O
     checkstat 'cache hit' 4 
     checkstat 'cache miss' 3
 
-    CCACHE_CPP2=1 $CCACHE_COMPILE -c test1.c -O -Wall
+    CCACHE_CPP2=1 $CCACHE_COMPILE -c test1.c -O -O
     checkstat 'cache hit' 5 
     checkstat 'cache miss' 3
 
     testname="CCACHE_NOSTATS"
-    CCACHE_NOSTATS=1 $CCACHE_COMPILE -c test1.c -O -Wall
+    CCACHE_NOSTATS=1 $CCACHE_COMPILE -c test1.c -O -O
     checkstat 'cache hit' 5
     checkstat 'cache miss' 3
     
     testname="CCACHE_RECACHE"
-    CCACHE_RECACHE=1 $CCACHE_COMPILE -c test1.c -O -Wall
+    CCACHE_RECACHE=1 $CCACHE_COMPILE -c test1.c -O -O
     checkstat 'cache hit' 5 
     checkstat 'cache miss' 4
 
@@ -156,11 +156,11 @@ basetests() {
 
 
     testname="CCACHE_HASHDIR"
-    CCACHE_HASHDIR=1 $CCACHE_COMPILE -c test1.c -O -Wall
+    CCACHE_HASHDIR=1 $CCACHE_COMPILE -c test1.c -O -O
     checkstat 'cache hit' 5
     checkstat 'cache miss' 5
 
-    CCACHE_HASHDIR=1 $CCACHE_COMPILE -c test1.c -O -Wall
+    CCACHE_HASHDIR=1 $CCACHE_COMPILE -c test1.c -O -O
     checkstat 'cache hit' 6
     checkstat 'cache miss' 5