summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2014-11-08 15:33:17 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2014-11-10 22:05:49 +0100
commitf12e3da6393376ed13370a45995bf1950081a954 (patch)
treed93a27cdb6590f2499aea252299f39a0d2616557 /python
parente5d3f812854b23ef5e7e51f96a3f89fa02c093fa (diff)
downloadlvm2-f12e3da6393376ed13370a45995bf1950081a954.tar.gz
cleanup: gcc warnings
Diffstat (limited to 'python')
-rw-r--r--python/liblvm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/liblvm.c b/python/liblvm.c
index 998313576..1b0942db5 100644
--- a/python/liblvm.c
+++ b/python/liblvm.c
@@ -1986,6 +1986,7 @@ static void _liblvm_cleanup(void)
}
}
+PyMODINIT_FUNC initlvm(void);
PyMODINIT_FUNC initlvm(void)
{
PyObject *m;
@@ -2020,7 +2021,7 @@ PyMODINIT_FUNC initlvm(void)
LVM_THIN_DISCARDS_PASSDOWN) < 0)
return;
- if ((_LibLVMError = PyErr_NewException("lvm.LibLVMError", NULL, NULL))) {
+ if ((_LibLVMError = PyErr_NewException((char*)"lvm.LibLVMError", NULL, NULL))) {
/* Each call to PyModule_AddObject decrefs it; compensate: */
Py_INCREF(_LibLVMError);
Py_INCREF(_LibLVMError);