summaryrefslogtreecommitdiff
path: root/CHANGES.current
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2022-10-05 13:23:49 +1300
committerOlly Betts <olly@survex.com>2022-10-05 17:07:06 +1300
commit06296a71281f049cfc438b4a7fb05127a0474144 (patch)
treef2785bb2d23b79e4ae652a25a472e80a3060c68f /CHANGES.current
parentbefcd1bf586dfd2bb2d54ddb177f1e30a78e4e11 (diff)
downloadswig-06296a71281f049cfc438b4a7fb05127a0474144.tar.gz
Report errors in preprocessor expressions by default
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
Diffstat (limited to 'CHANGES.current')
-rw-r--r--CHANGES.current17
1 files changed, 17 insertions, 0 deletions
diff --git a/CHANGES.current b/CHANGES.current
index 921441645..5d79c9084 100644
--- a/CHANGES.current
+++ b/CHANGES.current
@@ -7,6 +7,23 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
Version 4.1.0 (in progress)
===========================
+2022-10-05: olly
+ #1465 Report errors in preprocessor expressions by default
+
+ Until now SWIG quietly ignored such errors unless -Wextra (or -Wall
+ which implies -Wextra) was passed, but this is unhelpful as it tends
+ to hide genuine problems. To illustrate this point, enabling this
+ warning by default revealed 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.
+
2022-10-04: olly
#1050 Consistently define SWIG_VERSION both at SWIG-time and in
the generated wrapper. Best practice remains to check at SWIG-time