Mercurial > pygame
diff src/pixelcopy.c @ 3194:9fcb7abf3185 default tip
Remove some gcc 4.7.2 compiler warnings
| author | Lenard Lindstrom <len-l@telus.net> |
|---|---|
| date | Tue, 23 Apr 2013 19:53:36 -0700 |
| parents | 841b902f3d15 |
| children |
line wrap: on
line diff
--- a/src/pixelcopy.c Sat Mar 30 15:54:49 2013 +0100 +++ b/src/pixelcopy.c Tue Apr 23 19:53:36 2013 -0700 @@ -190,7 +190,7 @@ Py_intptr_t dz_pix; Py_intptr_t x, y, z; Uint8 r, g, b, a; - Uint8 *element; + Uint8 *element = 0; _pc_pixel_t pixel = { 0 }; Uint32 colorkey; @@ -1145,8 +1145,6 @@ MODINIT_DEFINE(pixelcopy) { - PyObject *module; - #if PY3 static struct PyModuleDef _module = { PyModuleDef_HEAD_INIT, @@ -1175,11 +1173,8 @@ } #if PY3 - module = PyModule_Create(&_module); + return PyModule_Create(&_module); #else - module = Py_InitModule3("pixelcopy", - _pixelcopy_methods, - DOC_PYGAMEPIXELCOPY); + Py_InitModule3("pixelcopy", _pixelcopy_methods, DOC_PYGAMEPIXELCOPY); #endif - MODINIT_RETURN(module); }
