Fixes for gcc 13, clang 16 and C++20
- Hide dangling-reference warnings in selected files
- Remove unused variables
- Use || instead of | for booleans
The (spurious) "possibly dangling reference to a temporary" warnings come from
the fact that gcc 13 seems not to be able to detect that
some_cond.get<json>()
returns a reference to the object stored inside
an OpaqueDataBlock
(it probably gets confused by the DD4hep
reimplementation of dynamic_cast
invoked in OpaqueData::as()
).
Note: based on !448 (merged)
Validated by
-
Core Software -
RTA -
Simulation
Edited by Marco Clemencic