qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [5207] Enable gcc flag -Wwrite-strings


From: Blue Swirl
Subject: [Qemu-devel] [5207] Enable gcc flag -Wwrite-strings
Date: Sun, 14 Sep 2008 06:46:32 +0000

Revision: 5207
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5207
Author:   blueswir1
Date:     2008-09-14 06:46:31 +0000 (Sun, 14 Sep 2008)

Log Message:
-----------
Enable gcc flag -Wwrite-strings

Modified Paths:
--------------
    trunk/Makefile.target
    trunk/configure

Modified: trunk/Makefile.target
===================================================================
--- trunk/Makefile.target       2008-09-14 06:45:34 UTC (rev 5206)
+++ trunk/Makefile.target       2008-09-14 06:46:31 UTC (rev 5207)
@@ -73,7 +73,8 @@
 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)

Modified: trunk/configure
===================================================================
--- trunk/configure     2008-09-14 06:45:34 UTC (rev 5206)
+++ trunk/configure     2008-09-14 06:46:31 UTC (rev 5207)
@@ -346,7 +346,8 @@
 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"






reply via email to

[Prev in Thread] Current Thread [Next in Thread]