Until now SWIG quietly ignored such errors unless -Wextra (or -Wall which implies -Wextra) was passed, but this is unhelpful as it hides problems. To illustrate this point, enabling this warning by default revealled a typo in the preproc_defined.i testcase in SWIG's own testsuite. If you really don't want to see this warning, you can suppress it with command line option -w202 or by using this in your interface file: %warnfilter(SWIGWARN_PP_EVALUATION); Both will work with older versions of SWIG too. Fixes #1465 Fixes #2389
6 lines
120 B
OpenEdge ABL
6 lines
120 B
OpenEdge ABL
%module xxx
|
|
|
|
|
|
/* Spaceship operator doesn't seem to be allowed in preprocessor expressions. */
|
|
#if (4 <=> 2) < 0
|
|
#endif
|