From 6b50db00cb90e1bd6854c2713411127161be362d Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Wed, 20 Apr 2011 11:15:15 -0500 Subject: [svn-r20561] Description: Remove C++ specific flag from C compilation flags, for gcc 4.5 & 4.6 Tested on: FreebSD/64 8.2 (freedom) w/gcc 4.6 --- config/gnu-flags | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/gnu-flags b/config/gnu-flags index 2ef29e5..1222c87 100644 --- a/config/gnu-flags +++ b/config/gnu-flags @@ -236,7 +236,7 @@ case "$cc_vendor-$cc_version" in H5_CFLAGS="$H5_CFLAGS -Wsync-nand -Wframe-larger-than=16384 -Wpacked-bitfield-compat" # Append more extra warning flags that only gcc 4.5+ know about - H5_CFLAGS="$H5_CFLAGS -Wstrict-aliasing -Wstrict-overflow=5 -Wc++0x-compat -Wjump-misses-init -Wunsuffixed-float-constants" + H5_CFLAGS="$H5_CFLAGS -Wstrict-aliasing -Wstrict-overflow=5 -Wjump-misses-init -Wunsuffixed-float-constants" # Append more extra warning flags that only gcc 4.6+ know about H5_CFLAGS="$H5_CFLAGS -Wdouble-promotion -Wsuggest-attribute=const -Wtrampolines" @@ -300,7 +300,7 @@ case "$cc_vendor-$cc_version" in H5_CFLAGS="$H5_CFLAGS -Wsync-nand -Wframe-larger-than=16384 -Wpacked-bitfield-compat" # Append more extra warning flags that only gcc 4.5+ know about - H5_CFLAGS="$H5_CFLAGS -Wstrict-aliasing -Wstrict-overflow=5 -Wc++0x-compat -Wjump-misses-init -Wunsuffixed-float-constants" + H5_CFLAGS="$H5_CFLAGS -Wstrict-aliasing -Wstrict-overflow=5 -Wjump-misses-init -Wunsuffixed-float-constants" # Try out the new "stack protector" feature in gcc 4.1 # (Strictly speaking this isn't really a "warning" flag, so it's added to -- cgit v0.12