Commit c1e6ccd1dbf3bb7a629147326189204cafc05f0b
1 parent
d0ef528a
Enable gcc flag -Wmissing-prototypes
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5929 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,7 +73,7 @@ PROGS=$(QEMU_PROG) | ||
73 | 73 | ||
74 | # We require -O2 to avoid the stack setup prologue in EXIT_TB | 74 | # We require -O2 to avoid the stack setup prologue in EXIT_TB |
75 | OP_CFLAGS := -O2 -g -fno-strict-aliasing | 75 | OP_CFLAGS := -O2 -g -fno-strict-aliasing |
76 | -OP_CFLAGS += -Wall -Wundef -Wendif-labels -Wwrite-strings | 76 | +OP_CFLAGS += -Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes |
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
@@ -381,7 +381,7 @@ done | @@ -381,7 +381,7 @@ done | ||
381 | 381 | ||
382 | # default flags for all hosts | 382 | # default flags for all hosts |
383 | CFLAGS="$CFLAGS -O2 -g -fno-strict-aliasing" | 383 | CFLAGS="$CFLAGS -O2 -g -fno-strict-aliasing" |
384 | -CFLAGS="$CFLAGS -Wall -Wundef -Wendif-labels -Wwrite-strings" | 384 | +CFLAGS="$CFLAGS -Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes" |
385 | LDFLAGS="$LDFLAGS -g" | 385 | LDFLAGS="$LDFLAGS -g" |
386 | if test "$werror" = "yes" ; then | 386 | if test "$werror" = "yes" ; then |
387 | CFLAGS="$CFLAGS -Werror" | 387 | CFLAGS="$CFLAGS -Werror" |