diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-06-18 11:49:40 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-06-18 14:14:29 -0400 |
commit | abf4b09915c10b2ff70adc27c72c9795fe2d7b42 (patch) | |
tree | 9068b48792f7f5f42ff357d1cadfa96d995d827c /cflags.SH | |
parent | be5a9ab8aad4470465711656707c84c4762f49a7 (diff) | |
download | perl-abf4b09915c10b2ff70adc27c72c9795fe2d7b42.tar.gz |
Add note about the -std=c89 needing -pedantic.
Diffstat (limited to 'cflags.SH')
-rwxr-xr-x | cflags.SH | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -159,9 +159,14 @@ case "$gccversion" in '') ;; [12]*) ;; # gcc versions 1 (gasp!) and 2 are not good for this. Intel*) ;; # # Is that you, Intel C++? -# XXX if -pedantic (or -pedantic-errors!) is ever added, +# XXX Note that -std=c89 without -pedantic is rather pointless. +# Just -std=c89 means "if there is room for interpretation, +# interpret the C89 way." It does NOT mean "strict C89", +# you would need to add the -pedantic to get that. +# +# XXX If -pedantic (or -pedantic-errors!) is ever added, # the -Werror=declaration-after-statement can be removed -# since -std=c89 -pedantic implies the -Werror=... +# since "-std=c89 -pedantic" implies the -Werror=d-a-s. *) for opt in -ansi -std=c89 -Wextra -W \ -Werror=declaration-after-statement \ -Wc++-compat -Wwrite-strings |