diff options
author | Tor Egge <Tor.Egge@online.no> | 2024-04-09 14:44:03 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2024-04-09 14:44:03 +0200 |
commit | 732b9edc37aada0c9de02ea34bb4170190c72c4b (patch) | |
tree | 87d2496957054e63fded003e0ce10ca85cfb1d3a | |
parent | 97a0c16566defc38da2ce7d34476472455d05d05 (diff) |
Don't promote inline warning to error when compiling with gcc 14.
-rw-r--r-- | build_settings.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build_settings.cmake b/build_settings.cmake index e06a7eba5f4..3477531cb56 100644 --- a/build_settings.cmake +++ b/build_settings.cmake @@ -55,9 +55,9 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_G endif() endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 14.0) - # Turn off maybe uninitialized warning when compiling with - # gcc 14 or newer. - set(C_WARN_OPTS "${C_WARN_OPTS} -Wno-maybe-uninitialized") + # Turn off maybe uninitialized warning and don't promote inline warning + # to error when compiling with gcc 14 or newer. + set(C_WARN_OPTS "${C_WARN_OPTS} -Wno-maybe-uninitialized -Wno-error=inline") endif() # Warnings that are specific to C++ compilation |