diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2019-12-04 08:49:52 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2019-12-16 16:13:47 (GMT) |
commit | 957940befb6358345840a6943e8ff736cbdd11f7 (patch) | |
tree | f99b0d8ff9ef22e06af698320933df2eea84a3af /config/gnu-flags | |
parent | 19f32485cf50b1797583e9f31acccd7e55b8a2a2 (diff) | |
download | hdf5-957940befb6358345840a6943e8ff736cbdd11f7.zip hdf5-957940befb6358345840a6943e8ff736cbdd11f7.tar.gz hdf5-957940befb6358345840a6943e8ff736cbdd11f7.tar.bz2 |
Yanked -Wc++-compat from the flags used to build the C library in both
the Autotools and CMake.
Diffstat (limited to 'config/gnu-flags')
-rw-r--r-- | config/gnu-flags | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/gnu-flags b/config/gnu-flags index 6355ccf..16795d0 100644 --- a/config/gnu-flags +++ b/config/gnu-flags @@ -168,7 +168,10 @@ if test "X-gcc" = "X-$cc_vendor"; then # NOTE: Disable the -Wformat-nonliteral from -Wformat=2 here and re-add # it to the developer flags. # - H5_CFLAGS="$H5_CFLAGS -pedantic -Wall -Wextra -Wbad-function-cast -Wc++-compat -Wcast-align" + # NOTE: Due to the divergence in the C and C++, we're dropping support for + # compiling the C library with a C++ compiler and dropping the -Wc++-compat + # warning. + H5_CFLAGS="$H5_CFLAGS -pedantic -Wall -Wextra -Wbad-function-cast -Wno-c++-compat -Wcast-align" H5_CFLAGS="$H5_CFLAGS -Wcast-qual -Wconversion -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-equal" H5_CFLAGS="$H5_CFLAGS -Wformat=2 -Wno-format-nonliteral -Winit-self -Winvalid-pch -Wmissing-declarations -Wmissing-include-dirs" H5_CFLAGS="$H5_CFLAGS -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked" |