Looks good to me. On 05/10/2011 02:38 AM, Ryan Finnie wrote:
This fixes Debian Bug#625352, in which -Werror causes a failure under GCC 4.6 due to the unused but set "d" variable, which itself is set by a call to PyModule_GetDict(). Signed-off-by: Ryan Finnie<ryan@xxxxxxxxxx> --- pyisomd5sum.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/pyisomd5sum.c b/pyisomd5sum.c index a0c40da..a15aff2 100644 --- a/pyisomd5sum.c +++ b/pyisomd5sum.c @@ -59,8 +59,5 @@ static PyObject * doImplantIsoMD5Sum(PyObject * s, PyObject * args) { void initpyisomd5sum(void) { - PyObject * m, * d; - - m = Py_InitModule("pyisomd5sum", isomd5sumMethods); - d = PyModule_GetDict(m); + (void)Py_InitModule("pyisomd5sum", isomd5sumMethods); }
_______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list