diff options
author | Robert Bradshaw <robertwb@gmail.com> | 2014-01-18 14:26:33 -0800 |
---|---|---|
committer | Robert Bradshaw <robertwb@gmail.com> | 2014-01-18 14:26:33 -0800 |
commit | 520ab3edbe610c94d1517a8e25587f33478687aa (patch) | |
tree | b8f4884588a5e1b4a15bd8b8b2d2c66bbab3a7ab /Cython/Utility/ModuleSetupCode.c | |
parent | 159d0ab231ab16acfe2ebf710265f6b24e74d2a4 (diff) | |
parent | 1dd5e2ef638af77f0e6145340d98b9d716d0b484 (diff) | |
download | cython-520ab3edbe610c94d1517a8e25587f33478687aa.tar.gz |
Merge branch '0.20.x'
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r-- | Cython/Utility/ModuleSetupCode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index d040a2476..a24e23bcf 100644 --- a/Cython/Utility/ModuleSetupCode.c +++ b/Cython/Utility/ModuleSetupCode.c @@ -157,8 +157,8 @@ #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i])) #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE)) #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u)) - /* (k=k) => avoid unused variable warning due to macro: */ - #define __Pyx_PyUnicode_READ(k, d, i) ((k=k), (Py_UCS4)(((Py_UNICODE*)d)[i])) + /* (void)(k) => avoid unused variable warning due to macro: */ + #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) #endif #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)) |