summaryrefslogtreecommitdiff
path: root/cflags.SH
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-06-18 11:49:40 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-06-18 14:14:29 -0400
commitabf4b09915c10b2ff70adc27c72c9795fe2d7b42 (patch)
tree9068b48792f7f5f42ff357d1cadfa96d995d827c /cflags.SH
parentbe5a9ab8aad4470465711656707c84c4762f49a7 (diff)
downloadperl-abf4b09915c10b2ff70adc27c72c9795fe2d7b42.tar.gz
Add note about the -std=c89 needing -pedantic.
Diffstat (limited to 'cflags.SH')
-rwxr-xr-xcflags.SH9
1 files changed, 7 insertions, 2 deletions
diff --git a/cflags.SH b/cflags.SH
index cdcbf4c390..e2bf4b9859 100755
--- a/cflags.SH
+++ b/cflags.SH
@@ -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