Commit 5f9981c71d3ca85323b9980626cd1ef868adb3b5
1 parent
eb38c52c
Enable gcc flag -Wundef
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5174 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
2 additions
and
2 deletions
Makefile.target
@@ -73,7 +73,7 @@ endif | @@ -73,7 +73,7 @@ endif | ||
73 | PROGS=$(QEMU_PROG) | 73 | PROGS=$(QEMU_PROG) |
74 | 74 | ||
75 | # We require -O2 to avoid the stack setup prologue in EXIT_TB | 75 | # We require -O2 to avoid the stack setup prologue in EXIT_TB |
76 | -OP_CFLAGS := -Wall -O2 -g -fno-strict-aliasing | 76 | +OP_CFLAGS := -Wall -Wundef -O2 -g -fno-strict-aliasing |
77 | 77 | ||
78 | # cc-option | 78 | # cc-option |
79 | # Usage: OP_CFLAGS+=$(call cc-option, -falign-functions=0, -malign-functions=0) | 79 | # Usage: OP_CFLAGS+=$(call cc-option, -falign-functions=0, -malign-functions=0) |
configure
@@ -346,7 +346,7 @@ for opt do | @@ -346,7 +346,7 @@ for opt do | ||
346 | done | 346 | done |
347 | 347 | ||
348 | # default flags for all hosts | 348 | # default flags for all hosts |
349 | -CFLAGS="$CFLAGS -Wall -O2 -g -fno-strict-aliasing" | 349 | +CFLAGS="$CFLAGS -Wall -Wundef -O2 -g -fno-strict-aliasing" |
350 | LDFLAGS="$LDFLAGS -g" | 350 | LDFLAGS="$LDFLAGS -g" |
351 | if test "$werror" = "yes" ; then | 351 | if test "$werror" = "yes" ; then |
352 | CFLAGS="$CFLAGS -Werror" | 352 | CFLAGS="$CFLAGS -Werror" |