]> git.kaiwu.me - nginx.git/commitdiff
update gcc warnings
authorIgor Sysoev <igor@sysoev.ru>
Fri, 24 Apr 2009 15:31:13 +0000 (15:31 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 24 Apr 2009 15:31:13 +0000 (15:31 +0000)
auto/cc/gcc

index 8ac76fb98d59c530423c6562f459e760cf61e2ba..8e5422e0839b6ffeeab59255a945d421ec981071 100644 (file)
@@ -158,9 +158,10 @@ case "$NGX_GCC_VER" in
     3.* | 4.* )
         # we have a lot of the unused function arguments
         CFLAGS="$CFLAGS -Wno-unused-parameter"
-        CFLAGS="$CFLAGS -Wno-unused-function"
+        CFLAGS="$CFLAGS -Wunused-function"
         CFLAGS="$CFLAGS -Wunused-variable"
         CFLAGS="$CFLAGS -Wunused-value"
+        # 4.2.1 shows the warning in wrong places
         #CFLAGS="$CFLAGS -Wunreachable-code"
     ;;