From 6ad8f979d5782c510cdfb04c07589e40fa438672 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Tue, 24 Sep 2024 18:51:46 +0200 Subject: [PATCH] Update Key4hepConfig.cmake with https://github.com/key4hep/key4hep-dev-utils/pull/9 --- cmake/Key4hepConfig.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Key4hepConfig.cmake b/cmake/Key4hepConfig.cmake index 6dd524a..7579de1 100644 --- a/cmake/Key4hepConfig.cmake +++ b/cmake/Key4hepConfig.cmake @@ -9,7 +9,7 @@ macro(key4hep_set_compiler_flags) if(CMAKE_CXX_COMPILER_ID MATCHES "^(Apple)?Clang$") set(COMPILER_FLAGS "${COMPILER_FLAGS} -Winconsistent-missing-override -Wheader-hygiene -fcolor-diagnostics") elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - set(COMPILER_FLAGS "${COMPILER_FLAGS} -fdiagnostics-color=always") + set(COMPILER_FLAGS "${COMPILER_FLAGS} -fdiagnostics-color=always -Wno-dangling-reference") endif() if (DEFINED KEY4HEP_SET_COMPILER_FLAGS AND NOT KEY4HEP_SET_COMPILER_FLAGS)