LAL: "LALError.h:95:42: error: statement with no effect" when building using Conda
The following error occurs when building using the default Conda compiler:
CC LALGSL.lo
In file included from ../../include/lal/LALStatusMacros.h:38:0,
from ../../include/lal/LALStdlib.h:58,
from LALGSL.c:20:
LALGSL.c: In function 'LALGSLErrorHandler':
../../include/lal/LALError.h:95:42: error: statement with no effect [-Werror=unused-value]
#define LALError( statusptr, statement ) 0
^
LALGSL.c:80:5: note: in expansion of macro 'LALError'
LALError(lalGSLGlobalStatusPtr, reason);
^~~~~~~~
../../include/lal/LALError.h:98:42: error: statement with no effect [-Werror=unused-value]
#define LALTrace( statusptr, exitflg ) 0
^
LALGSL.c:81:5: note: in expansion of macro 'LALTrace'
LALTrace(lalGSLGlobalStatusPtr, 1);
^~~~~~~~
LALGSL.c:65:32: error: unused parameter 'reason' [-Werror=unused-parameter]
LALGSLErrorHandler(const char *reason,
^~~~~~
cc1: all warnings being treated as errors