Skip to content
Snippets Groups Projects

Supress warnings about nodiscard in dictionary generation with ROOT 6.22

Merged Christoph Hasse requested to merge suppress_cling_nodiscard_warning into master
All threads resolved!
1 file
+ 6
0
Compare changes
  • Side-by-side
  • Inline
+ 6
0
@@ -636,6 +636,12 @@ function(gaudi_add_dictionary dictionary)
if(DEFINED GENREFLEX_JOB_POOL)
set(job_pool JOB_POOL ${GENREFLEX_JOB_POOL})
endif()
# Workaround for rootcling not knowing what nodiscard is
+1
if(ROOT_VERSION MATCHES "^6\.22.*")
set( ARG_OPTIONS ${ARG_OPTIONS} -Wno-unknown-attributes)
endif()
add_custom_command(OUTPUT ${gensrcdict} ${rootmapname} ${pcmfile}
COMMAND run
${ROOT_genreflex_CMD} # comes from ROOTConfig.cmake
Loading