IAP GITLAB

Skip to content
Snippets Groups Projects
Commit a771abab authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

add [[maybe_unused]]

parent 66081f16
No related branches found
No related tags found
1 merge request!468Resolve "Add FLUKA"
......@@ -9,17 +9,6 @@
#include <FLUKA.hpp>
namespace fluka {
/**
* The following (function) pointers make sure the corresponding objects in libflukahp.a
* won't get dropped from the final file during linking.
*/
auto* const hepevt_ptr = &hepevt_;
auto* const stpxyc_ptr = &stpxyz_;
auto* const evtxyz_ptr = &evtxyz_;
auto* const sgmxyz_ptr = &sgmxyz_;
double (*rndmPtr)() = &rndm_interface;
extern "C" {
......@@ -27,6 +16,16 @@ namespace fluka {
//! overwrite function pointer to be used as FLUKA RNG (flrndm_())
void setFlukaRNG(double (*func)()) { ::fluka::rndmPtr = func; }
/**
* The following (function) pointers make sure the corresponding objects in libflukahp.a
* won't get dropped from the final file during linking.
*/
[[maybe_unused]] auto* const hepevt_ptr = &hepevt_;
[[maybe_unused]] auto* const stpxyc_ptr = &stpxyz_;
[[maybe_unused]] auto* const evtxyz_ptr = &evtxyz_;
[[maybe_unused]] auto* const sgmxyz_ptr = &sgmxyz_;
}
} // namespace fluka
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