summaryrefslogtreecommitdiff
path: root/cflags.SH
diff options
context:
space:
mode:
authorRobin Barker <r.m.barker@btinternet.com>2010-08-14 13:58:51 -0500
committerSteve Peters <steve@fisharerojo.org>2010-08-14 13:58:51 -0500
commitdb7198b53dd9e7c0c335754a463be277da12e8b5 (patch)
treeb71b4c993eb4830bf58cf63eed59e21d21826071 /cflags.SH
parente761bb84a9e140614351efd76e7716ec2238cd75 (diff)
downloadperl-db7198b53dd9e7c0c335754a463be277da12e8b5.tar.gz
RT #74436: [PATCH] Add -Wwrite-strings
The perl source has for some while been clean to -Wwrite-strings. I suggest this warning be added to cflags. The patch makes the appropriate change to cflags.SH and silences a warning from mg.c
Diffstat (limited to 'cflags.SH')
-rw-r--r--cflags.SH3
1 files changed, 2 insertions, 1 deletions
diff --git a/cflags.SH b/cflags.SH
index a5d71b928c..f57cf2fc3e 100644
--- a/cflags.SH
+++ b/cflags.SH
@@ -134,7 +134,8 @@ case "$gccversion" in
'') ;;
[12]*) ;; # gcc versions 1 (gasp!) and 2 are not good for this.
Intel*) ;; # # Is that you, Intel C++?
-*) for opt in -ansi -std=c89 -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
+*) for opt in -ansi -std=c89 -W -Wextra -Wdeclaration-after-statement \
+ -Wendif-labels -Wc++-compat -Wwrite-strings
do
case " $ccflags " in
*" $opt "*) ;; # Skip if already there.