From ac41a6206fe9e1506010cd0aa9cf56ed3b37ae19 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Sun, 14 Sep 2008 06:46:31 +0000 Subject: [PATCH] Enable gcc flag -Wwrite-strings git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5207 c046a42c-6fe2-441c-8c8c-71466251a162 --- Makefile.target | 3 ++- configure | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.target b/Makefile.target index 91967ec65d..ac99df13d9 100644 --- a/Makefile.target +++ b/Makefile.target @@ -73,7 +73,8 @@ endif PROGS=$(QEMU_PROG) # We require -O2 to avoid the stack setup prologue in EXIT_TB -OP_CFLAGS := -Wall -Wundef -Wendif-labels -O2 -g -fno-strict-aliasing +OP_CFLAGS := -O2 -g -fno-strict-aliasing +OP_CFLAGS += -Wall -Wundef -Wendif-labels -Wwrite-strings # cc-option # Usage: OP_CFLAGS+=$(call cc-option, -falign-functions=0, -malign-functions=0) diff --git a/configure b/configure index 365e8ad6e1..d77f9b8f60 100755 --- a/configure +++ b/configure @@ -346,7 +346,8 @@ for opt do done # default flags for all hosts -CFLAGS="$CFLAGS -Wall -Wundef -Wendif-labels -O2 -g -fno-strict-aliasing" +CFLAGS="$CFLAGS -O2 -g -fno-strict-aliasing" +CFLAGS="$CFLAGS -Wall -Wundef -Wendif-labels -Wwrite-strings" LDFLAGS="$LDFLAGS -g" if test "$werror" = "yes" ; then CFLAGS="$CFLAGS -Werror"