Skip to content

Commit 982f8d3

Browse files
committed
Update Key4hepConfig.cmake to remove the -Wno-dangling-reference warning with GCC
1 parent 4943ffc commit 982f8d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/Key4hepConfig.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ macro(key4hep_set_compiler_flags)
99
if(CMAKE_CXX_COMPILER_ID MATCHES "^(Apple)?Clang$")
1010
set(COMPILER_FLAGS "${COMPILER_FLAGS} -Winconsistent-missing-override -Wheader-hygiene -fcolor-diagnostics")
1111
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
12-
set(COMPILER_FLAGS "${COMPILER_FLAGS} -fdiagnostics-color=always -Wno-dangling-reference")
12+
set(COMPILER_FLAGS "${COMPILER_FLAGS} -fdiagnostics-color=always")
1313
endif()
1414

1515
if (DEFINED KEY4HEP_SET_COMPILER_FLAGS AND NOT KEY4HEP_SET_COMPILER_FLAGS)

0 commit comments

Comments
 (0)