Module: sip-router
Branch: master
Commit: 1abde923ee3cbdcce69b72d223fb0c487b892b6e
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1abde92…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Jul 17 00:17:58 2011 +0200
app_python: fixed compile warning
- warning: dereferencing type-punned pointer will break strict-aliasing
rules
---
modules/app_python/python_msgobj.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules/app_python/python_msgobj.c b/modules/app_python/python_msgobj.c
index 4bf601a..3e4a2cd 100644
--- a/modules/app_python/python_msgobj.c
+++ b/modules/app_python/python_msgobj.c
@@ -526,8 +526,7 @@ static PyTypeObject MSGtype = {
int
python_msgobj_init(void)
{
-
- Py_TYPE(&MSGtype) = &PyType_Type;
+ Py_TYPE((void*)(&MSGtype)) = &PyType_Type;
if (PyType_Ready(&MSGtype) < 0)
return -1;
return 0;