Re: [isomd5sum PATCH 1/3] Remove vestigal code from initpyisomd5sum

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux