From: Panu Matilainen Date: Tue, 10 Jul 2007 12:19:04 +0000 (+0300) Subject: Fix bunch of compiler warnings from python bindings (method pointer types) X-Git-Tag: rpm-4.6.0-rc1~2303 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f91bb73993794e573ecc234106feca12739a4cea;p=platform%2Fupstream%2Frpm.git Fix bunch of compiler warnings from python bindings (method pointer types) --- diff --git a/python/rpmds-py.c b/python/rpmds-py.c index 269c342..1598fee 100644 --- a/python/rpmds-py.c +++ b/python/rpmds-py.c @@ -638,7 +638,7 @@ PyTypeObject rpmds_Type = { (initproc) rpmds_init, /* tp_init */ (allocfunc) rpmds_alloc, /* tp_alloc */ (newfunc) rpmds_new, /* tp_new */ - rpmds_free, /* tp_free */ + (freefunc) rpmds_free, /* tp_free */ 0, /* tp_is_gc */ #endif }; diff --git a/python/rpmfd-py.c b/python/rpmfd-py.c index 5681494..1f2f6c5 100644 --- a/python/rpmfd-py.c +++ b/python/rpmfd-py.c @@ -323,7 +323,7 @@ PyTypeObject rpmfd_Type = { (initproc) rpmfd_init, /* tp_init */ (allocfunc) rpmfd_alloc, /* tp_alloc */ (newfunc) rpmfd_new, /* tp_new */ - rpmfd_free, /* tp_free */ + (freefunc) rpmfd_free, /* tp_free */ 0, /* tp_is_gc */ #endif }; diff --git a/python/rpmfi-py.c b/python/rpmfi-py.c index 6055bda..f0cb94f 100644 --- a/python/rpmfi-py.c +++ b/python/rpmfi-py.c @@ -586,7 +586,7 @@ PyTypeObject rpmfi_Type = { (initproc) rpmfi_init, /* tp_init */ (allocfunc) rpmfi_alloc, /* tp_alloc */ (newfunc) rpmfi_new, /* tp_new */ - rpmfi_free, /* tp_free */ + (freefunc) rpmfi_free, /* tp_free */ 0, /* tp_is_gc */ #endif }; diff --git a/python/rpmfts-py.c b/python/rpmfts-py.c index ea3f423..bb35943 100644 --- a/python/rpmfts-py.c +++ b/python/rpmfts-py.c @@ -572,9 +572,9 @@ PyTypeObject rpmfts_Type = { 0, /* tp_descr_set */ offsetof(rpmftsObject, md_dict),/* tp_dictoffset */ (initproc) rpmfts_init, /* tp_init */ - rpmfts_alloc, /* tp_alloc */ - rpmfts_new, /* tp_new */ - rpmfts_free, /* tp_free */ + (allocfunc) rpmfts_alloc, /* tp_alloc */ + (newfunc) rpmfts_new, /* tp_new */ + (freefunc) rpmfts_free, /* tp_free */ 0, /* tp_is_gc */ }; /*@=fullinitblock@*/ diff --git a/python/rpmps-py.c b/python/rpmps-py.c index 52fd7d6..f172124 100644 --- a/python/rpmps-py.c +++ b/python/rpmps-py.c @@ -350,7 +350,7 @@ PyTypeObject rpmps_Type = { (initproc) rpmps_init, /* tp_init */ (allocfunc) rpmps_alloc, /* tp_alloc */ (newfunc) rpmps_new, /* tp_new */ - rpmps_free, /* tp_free */ + (freefunc) rpmps_free, /* tp_free */ 0, /* tp_is_gc */ #endif }; diff --git a/python/rpmrc-py.c b/python/rpmrc-py.c index 97b9ac0..adcbe9a 100644 --- a/python/rpmrc-py.c +++ b/python/rpmrc-py.c @@ -371,10 +371,10 @@ PyTypeObject rpmrc_Type = { 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ - rpmrc_init, /* tp_init */ - rpmrc_alloc, /* tp_alloc */ - rpmrc_new, /* tp_new */ - rpmrc_free, /* tp_free */ + (initproc) rpmrc_init, /* tp_init */ + (allocfunc) rpmrc_alloc, /* tp_alloc */ + (newfunc) rpmrc_new, /* tp_new */ + (freefunc) rpmrc_free, /* tp_free */ 0, /* tp_is_gc */ }; #else diff --git a/python/rpmts-py.c b/python/rpmts-py.c index 7b395e7..5834d90 100644 --- a/python/rpmts-py.c +++ b/python/rpmts-py.c @@ -1678,7 +1678,7 @@ PyTypeObject rpmts_Type = { (initproc) rpmts_init, /* tp_init */ (allocfunc) rpmts_alloc, /* tp_alloc */ (newfunc) rpmts_new, /* tp_new */ - rpmts_free, /* tp_free */ + (freefunc) rpmts_free, /* tp_free */ 0, /* tp_is_gc */ #endif };