mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-16 17:10:32 +03:00
Work around false cpychecker false positive
davidmalcolm/gcc-python-plugin#158
This commit is contained in:
parent
22edcd3d0e
commit
1d0ae3eb9b
|
@ -474,6 +474,16 @@ _psyco_conn_parse_isolevel(PyObject *pyval)
|
||||||
}
|
}
|
||||||
|
|
||||||
rv = level;
|
rv = level;
|
||||||
|
|
||||||
|
/* Redundant test, checked above.
|
||||||
|
* Work around a cpychecker false positive.
|
||||||
|
* davidmalcolm/gcc-python-plugin#158
|
||||||
|
*/
|
||||||
|
if (rv < 0) {
|
||||||
|
PyErr_SetString(PyExc_ValueError,
|
||||||
|
"isolation_level must be between 1 and 4");
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* parse from the string -- this includes "default" */
|
/* parse from the string -- this includes "default" */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user