From 3b8bc08be706743746fff4f18e51d521ad5bc1e2 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 8 Aug 2012 22:24:46 +0000 Subject: [PATCH] Suppress -Werror=unused-but-set-variable gcc warning in Python wrappers git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13571 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- CHANGES.current | 3 +++ Lib/python/pyinit.swg | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGES.current b/CHANGES.current index e69c7d1dc..b8a80cfed 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -5,6 +5,9 @@ See the RELEASENOTES file for a summary of changes in each release. Version 2.0.8 (in progress) =========================== +2012-08-05: wsfulton + [Python] #3530021 Fix unused variable warning. + 2012-08-05: wsfulton [C#] Fix #3536360 - Invalid code sometimes being generated for director methods with many arguments. diff --git a/Lib/python/pyinit.swg b/Lib/python/pyinit.swg index 7a32a5046..6a6de0963 100644 --- a/Lib/python/pyinit.swg +++ b/Lib/python/pyinit.swg @@ -398,6 +398,7 @@ SWIG_init(void) { m = Py_InitModule((char *) SWIG_name, SwigMethods); #endif md = d = PyModule_GetDict(m); + (void)md; SWIG_InitializeModule(0);