diff options
author | Quincey Koziol <koziol@koziol.gov> | 2019-07-03 04:49:35 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@koziol.gov> | 2019-07-03 04:49:35 (GMT) |
commit | 7509c2c4fc304971b7eccf34aecc72304b9e4c8f (patch) | |
tree | 13e35d2f5c79f9a992bc948b63d8b61911822eff /config/cmake | |
parent | 3b594992d6b062cf350d3f03e4b5c5d27b83a245 (diff) | |
download | hdf5-7509c2c4fc304971b7eccf34aecc72304b9e4c8f.zip hdf5-7509c2c4fc304971b7eccf34aecc72304b9e4c8f.tar.gz hdf5-7509c2c4fc304971b7eccf34aecc72304b9e4c8f.tar.bz2 |
Added GCC9 flags to CMake build
Diffstat (limited to 'config/cmake')
-rw-r--r-- | config/cmake/HDFCompilerFlags.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/cmake/HDFCompilerFlags.cmake b/config/cmake/HDFCompilerFlags.cmake index 106d6d7..d658c48 100644 --- a/config/cmake/HDFCompilerFlags.cmake +++ b/config/cmake/HDFCompilerFlags.cmake @@ -208,6 +208,11 @@ if (NOT MSVC AND CMAKE_COMPILER_IS_GNUCC) set (H5_CFLAGS4 "${H5_CFLAGS4} -Wattribute-alias -Wcast-align=strict -Wshift-overflow=2 -Wno-suggest-attribute=cold -Wno-suggest-attribute=malloc") endif () + # Append more extra warning flags that only gcc 9.x+ know about + if (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 9.0) + set (H5_CFLAGS4 "${H5_CFLAGS4} Wattribute-alias=2 -Wmissing-profile") + endif () + endif () #----------------------------------------------------------------------------- |