FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 05-10-2011, 12:38 AM
Ryan Finnie
 
Default Remove vestigal code from initpyisomd5sum

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@finnie.org>
---
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);
}
--
1.5.6.5

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-11-2011, 11:30 AM
Radek Vykydal
 
Default Remove vestigal code from initpyisomd5sum

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@finnie.org>
---
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 07:24 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org