summaryrefslogtreecommitdiffstats
path: root/config/gnu-flags
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-11-13 20:39:12 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2019-11-13 20:39:12 (GMT)
commit29561bac95ad5af985afe55ba7653d1b15399650 (patch)
tree782eaf05e3cb4962577b65c139df7faf43313fb3 /config/gnu-flags
parentbf6b89c8414844b53497ff222f47e425345ad797 (diff)
downloadhdf5-29561bac95ad5af985afe55ba7653d1b15399650.zip
hdf5-29561bac95ad5af985afe55ba7653d1b15399650.tar.gz
hdf5-29561bac95ad5af985afe55ba7653d1b15399650.tar.bz2
Promote decleration-after-statement warnings to errors.
Diffstat (limited to 'config/gnu-flags')
-rw-r--r--config/gnu-flags2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/gnu-flags b/config/gnu-flags
index 101b27b..968bbfe 100644
--- a/config/gnu-flags
+++ b/config/gnu-flags
@@ -181,6 +181,7 @@ if test "X-gcc" = "X-$cc_vendor"; then
H5_ECFLAGS="$H5_ECFLAGS -Werror=bad-function-cast"
H5_ECFLAGS="$H5_ECFLAGS -Werror=cast-align"
H5_ECFLAGS="$H5_ECFLAGS -Werror=cast-function-type"
+ H5_ECFLAGS="$H5_ECFLAGS -Werror=declaration-after-statement"
# H5_ECFLAGS="$H5_ECFLAGS -Werror=discarded-qualifiers"
H5_ECFLAGS="$H5_ECFLAGS -Werror=implicit-function-declaration"
H5_ECFLAGS="$H5_ECFLAGS -Werror=incompatible-pointer-types"
@@ -213,7 +214,6 @@ if test "X-gcc" = "X-$cc_vendor"; then
#
# Let's discuss:
#
- DEVELOPER_WARNING_CFLAGS="$DEVELOPER_WARNING_CFLAGS -Wdeclaration-after-statement"
DEVELOPER_WARNING_CFLAGS="$DEVELOPER_WARNING_CFLAGS -Wdisabled-optimization"
DEVELOPER_WARNING_CFLAGS="$DEVELOPER_WARNING_CFLAGS -Wunused-macros"
DEVELOPER_WARNING_CFLAGS="$DEVELOPER_WARNING_CFLAGS -Wunsafe-loop-optimizations"