Commit 12bbe5f3 authored by Stefan Behnel's avatar Stefan Behnel

Try if we can avoid a C compiler warning in clang for a constant strchr() call.

parent 0917df8f
......@@ -180,7 +180,8 @@ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
{
#if PY_MAJOR_VERSION >= 3
if (level == -1) {
if ((strchr(__Pyx_MODULE_NAME, '.'))) {
// Avoid C compiler warning if strchr() evaluates to false at compile time.
if ((1) && (strchr(__Pyx_MODULE_NAME, '.'))) {
/* try package relative import first */
#if CYTHON_COMPILING_IN_LIMITED_API
module = PyImport_ImportModuleLevelObject(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment