diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2024-04-09 15:19:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-09 15:19:44 +0200 |
commit | e1f023d0e14c3351948beed1ee0af6e466581251 (patch) | |
tree | fdb32af33764229c27d8ba5a57136877e4c8dd84 | |
parent | 49b5591752cdeb3bf0c5728e2698af42fa3513eb (diff) | |
parent | 732b9edc37aada0c9de02ea34bb4170190c72c4b (diff) |
Merge pull request #30861 from vespa-engine/toregge/dont-promote-inline-warning-to-error-when-compiling-with-gcc-14
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 |