Mercurial > hg > nginx
comparison auto/cc/gcc @ 2751:3b9b67bc0cdc
update gcc warnings
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 24 Apr 2009 15:31:13 +0000 |
parents | d1792e17a559 |
children | b57a4a704f3c fe084c435dc3 |
comparison
equal
deleted
inserted
replaced
2750:9a5f7b81b937 | 2751:3b9b67bc0cdc |
---|---|
156 | 156 |
157 case "$NGX_GCC_VER" in | 157 case "$NGX_GCC_VER" in |
158 3.* | 4.* ) | 158 3.* | 4.* ) |
159 # we have a lot of the unused function arguments | 159 # we have a lot of the unused function arguments |
160 CFLAGS="$CFLAGS -Wno-unused-parameter" | 160 CFLAGS="$CFLAGS -Wno-unused-parameter" |
161 CFLAGS="$CFLAGS -Wno-unused-function" | 161 CFLAGS="$CFLAGS -Wunused-function" |
162 CFLAGS="$CFLAGS -Wunused-variable" | 162 CFLAGS="$CFLAGS -Wunused-variable" |
163 CFLAGS="$CFLAGS -Wunused-value" | 163 CFLAGS="$CFLAGS -Wunused-value" |
164 # 4.2.1 shows the warning in wrong places | |
164 #CFLAGS="$CFLAGS -Wunreachable-code" | 165 #CFLAGS="$CFLAGS -Wunreachable-code" |
165 ;; | 166 ;; |
166 | 167 |
167 *) | 168 *) |
168 # we have a lot of the unused function arguments | 169 # we have a lot of the unused function arguments |