From b5771c3d4789ecb03a70cfe405cb168aa0b6113d Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Thu, 3 Apr 2025 19:04:18 -0400 Subject: [PATCH] fix(qudarap): prevent call to undefined by guarding with a macro (#63) See qudarap/QEvt.hh ```cpp struct QUDARAP_API QEvt : public SCompProvider { ... #ifndef PRODUCTION ... NP* gatherGenstepFromDevice() const ; ... #endif ... }; ``` --- qudarap/QEvt.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qudarap/QEvt.cc b/qudarap/QEvt.cc index c1cec5937..51ec0b8a0 100644 --- a/qudarap/QEvt.cc +++ b/qudarap/QEvt.cc @@ -1360,7 +1360,9 @@ NP* QEvt::gatherComponent_(unsigned cmp) const switch(cmp) { //case SCOMP_GENSTEP: a = getGenstep() ; break ; +#ifndef PRODUCTION case SCOMP_GENSTEP: a = gatherGenstepFromDevice() ; break ; +#endif case SCOMP_INPHOTON: a = getInputPhoton() ; break ; case SCOMP_PHOTON: a = gatherPhoton() ; break ; case SCOMP_PHOTONLITE: a = gatherPhotonLite() ; break ;