diff options
author | Robin Barker <r.m.barker@btinternet.com> | 2010-08-14 13:58:51 -0500 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2010-08-14 13:58:51 -0500 |
commit | db7198b53dd9e7c0c335754a463be277da12e8b5 (patch) | |
tree | b71b4c993eb4830bf58cf63eed59e21d21826071 /cflags.SH | |
parent | e761bb84a9e140614351efd76e7716ec2238cd75 (diff) | |
download | perl-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.SH | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. |