diff --git a/config/cmake/HDFCompilerFlags.cmake b/config/cmake/HDFCompilerFlags.cmake index b0537b34f82..78aa3c37027 100644 --- a/config/cmake/HDFCompilerFlags.cmake +++ b/config/cmake/HDFCompilerFlags.cmake @@ -322,12 +322,6 @@ if (CMAKE_C_COMPILER_ID STREQUAL "GNU") # ADD_H5_FLAGS (H5_CFLAGS "${HDF5_SOURCE_DIR}/config/gnu-warnings/no-developer-12") endif () endif () - - # Append more extra warning flags that only gcc 13.x+ knows about - # or which should only be enabled for gcc 13.x+ - if (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 13.0) - ADD_H5_FLAGS (H5_CFLAGS "${HDF5_SOURCE_DIR}/config/gnu-warnings/13") - endif () endif () #----------------------------------------------------------------------------- diff --git a/config/gnu-flags b/config/gnu-flags index 12065ed508c..658475c0aba 100644 --- a/config/gnu-flags +++ b/config/gnu-flags @@ -277,16 +277,6 @@ if test "X-gcc" = "X-$cc_vendor"; then DEVELOPER_WARNING_CFLAGS="$DEVELOPER_WARNING_CFLAGS $(load_gnu_arguments developer-10)" fi - # gcc >= 12 - if test $cc_vers_major -ge 12; then - DEVELOPER_WARNING_CFLAGS="$DEVELOPER_WARNING_CFLAGS $(load_gnu_arguments developer-12)" - fi - - # gcc >= 13 - if test $cc_vers_major -ge 13; then - H5_CFLAGS="$H5_CFLAGS $(load_gnu_arguments 13)" - fi - ################# # Flags are set # ################# diff --git a/config/gnu-warnings/13 b/config/gnu-warnings/13 deleted file mode 100644 index 832e6cce68c..00000000000 --- a/config/gnu-warnings/13 +++ /dev/null @@ -1,2 +0,0 @@ --Wxor-used-as-pow --Wenum-int-mismatch