Skip to content
Snippets Groups Projects
Commit 0efce187 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Hide maybe-uninitialized warnings in ROOT dictionaries

parent 84924f6f
No related branches found
No related tags found
1 merge request!1501Fixes for gcc 13, clang 16 and C++20
Pipeline #6332927 passed
......@@ -1136,6 +1136,14 @@ function(gaudi_add_dictionary dictionary)
_gaudi_runtime_prepend(ld_library_path $<TARGET_FILE_DIR:${dictionary}>)
# Add the path to the merged rootmap file to LD_LIBRARY_PATH
_gaudi_runtime_prepend(ld_library_path ${CMAKE_BINARY_DIR})
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0
AND CMAKE_BUILD_TYPE STREQUAL "FastDebug")
# Hide warnings produced by gcc 13 from dictionary code that ends up looking like
# https://godbolt.org/z/je7dE3vr1 (only with `-Og`)
set_source_files_properties(${gensrcdict} PROPERTIES COMPILE_OPTIONS -Wno-maybe-uninitialized)
endif()
endfunction()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment