diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2022-04-07 14:37:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-07 14:37:08 (GMT) |
commit | a4e833c50c002239af8c16667b1b072e6c6fa27f (patch) | |
tree | a9a5a7a595f4291f973e5783716e4e2499edd031 /config/gnu-warnings | |
parent | dc07ef19fd055daa27026282213c63e7e74f73c2 (diff) | |
download | hdf5-a4e833c50c002239af8c16667b1b072e6c6fa27f.zip hdf5-a4e833c50c002239af8c16667b1b072e6c6fa27f.tar.gz hdf5-a4e833c50c002239af8c16667b1b072e6c6fa27f.tar.bz2 |
1.12: Brings 1.12 compiler options in line with develop (#1611)
* Brings 1.12 compiler options in line with develop
* Revert 'since' doxygen field in H5public.h
Diffstat (limited to 'config/gnu-warnings')
-rw-r--r-- | config/gnu-warnings/cxx-general | 1 | ||||
-rw-r--r-- | config/gnu-warnings/developer-general | 3 | ||||
-rw-r--r-- | config/gnu-warnings/error-5 | 1 | ||||
-rw-r--r-- | config/gnu-warnings/error-general | 1 | ||||
-rw-r--r-- | config/gnu-warnings/general | 14 |
5 files changed, 6 insertions, 14 deletions
diff --git a/config/gnu-warnings/cxx-general b/config/gnu-warnings/cxx-general index 9548cc0..1626524 100644 --- a/config/gnu-warnings/cxx-general +++ b/config/gnu-warnings/cxx-general @@ -17,7 +17,6 @@ -Winit-self -Winvalid-pch -Wmissing-include-dirs --Wno-format-nonliteral -Wnon-virtual-dtor -Wold-style-cast -Woverloaded-virtual diff --git a/config/gnu-warnings/developer-general b/config/gnu-warnings/developer-general index b34c4b7..460b874 100644 --- a/config/gnu-warnings/developer-general +++ b/config/gnu-warnings/developer-general @@ -1,9 +1,6 @@ # (suggestions from gcc, not code problems) -# NOTE: -Wformat-nonliteral added back in here (from being disabled in -# H5_CFLAGS) -Waggregate-return -Wdisabled-optimization --Wformat-nonliteral -Winline -Wmissing-format-attribute -Wmissing-noreturn diff --git a/config/gnu-warnings/error-5 b/config/gnu-warnings/error-5 index f7e1138..282ee3f 100644 --- a/config/gnu-warnings/error-5 +++ b/config/gnu-warnings/error-5 @@ -1,4 +1,5 @@ -Werror=incompatible-pointer-types +-Werror=int-conversion # # In GCC 4.4.7, the compiler gripes about shadowed global # declarations when a local variable uses the name of a diff --git a/config/gnu-warnings/error-general b/config/gnu-warnings/error-general index 8405c40..a66d284 100644 --- a/config/gnu-warnings/error-general +++ b/config/gnu-warnings/error-general @@ -11,6 +11,7 @@ -Werror=packed -Werror=pointer-sign -Werror=pointer-to-int-cast +-Werror=int-to-pointer-cast -Werror=redundant-decls -Werror=strict-prototypes -Werror=switch diff --git a/config/gnu-warnings/general b/config/gnu-warnings/general index a7a20b7..df4c613 100644 --- a/config/gnu-warnings/general +++ b/config/gnu-warnings/general @@ -15,18 +15,12 @@ -Winit-self -Winvalid-pch -Wmissing-include-dirs -# +-Wshadow +-Wundef +-Wwrite-strings +-pedantic # 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. # -Wno-c++-compat -# -# NOTE: Disable the -Wformat-nonliteral from -Wformat=2 here and re-add -# it to the developer flags. -# --Wno-format-nonliteral --Wshadow --Wundef --Wwrite-strings --pedantic |