Commit 10865b3496e32f5542f8cf5a3acaa1e119fa8314
1 parent
c1e6ccd1
Enable gcc flag -Wstrict-prototypes
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5930 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
2 additions
and
2 deletions
Makefile.target
... | ... | @@ -73,7 +73,7 @@ PROGS=$(QEMU_PROG) |
73 | 73 | |
74 | 74 | # We require -O2 to avoid the stack setup prologue in EXIT_TB |
75 | 75 | OP_CFLAGS := -O2 -g -fno-strict-aliasing |
76 | -OP_CFLAGS += -Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes | |
76 | +OP_CFLAGS += -Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes | |
77 | 77 | |
78 | 78 | # cc-option |
79 | 79 | # Usage: OP_CFLAGS+=$(call cc-option, -falign-functions=0, -malign-functions=0) | ... | ... |
configure
... | ... | @@ -381,7 +381,7 @@ done |
381 | 381 | |
382 | 382 | # default flags for all hosts |
383 | 383 | CFLAGS="$CFLAGS -O2 -g -fno-strict-aliasing" |
384 | -CFLAGS="$CFLAGS -Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes" | |
384 | +CFLAGS="$CFLAGS -Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes" | |
385 | 385 | LDFLAGS="$LDFLAGS -g" |
386 | 386 | if test "$werror" = "yes" ; then |
387 | 387 | CFLAGS="$CFLAGS -Werror" | ... | ... |