From: SourceForge.net <no...@so...> - 2012-05-26 23:45:12
|
Bugs item #3530021, was opened at 2012-05-26 16:45 Message generated for change (Tracker Item Submitted) made by jralls You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3530021&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: python Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: John Ralls (jralls) Assigned to: Nobody/Anonymous (nobody) Summary: Swig python C interface files warn with -Wunused Initial Comment: The following simple patch prevents the warnings: --- a/Lib/python/pyinit.swg (revision 13127) +++ b/Lib/pythonpyinit.swg (working copy) @@ -324,7 +324,10 @@ void #endif SWIG_init(void) { - PyObject *m, *d, *md; + PyObject *m, *d; +#if defined(SWIGPYTHON_BUILTIN) + PyObject *md; +#endif #if PY_VERSION_HEX >= 0x03000000 static struct PyModuleDef SWIG_module = { # if PY_VERSION_HEX >= 0x03020000 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3530021&group_id=1645 |