diff options
author | Matthias Klose <doko@ubuntu.com> | 2009-04-05 21:19:13 (GMT) |
---|---|---|
committer | Matthias Klose <doko@ubuntu.com> | 2009-04-05 21:19:13 (GMT) |
commit | 91a3b9e4f08a5e1325642c68543495c32fc853f9 (patch) | |
tree | 4a9213e6cad613529c58d77888e5fc6a123057d5 /Modules | |
parent | a5d58c831fa3b23960c9dfa78f7b9c62a31ce3e0 (diff) | |
download | cpython-91a3b9e4f08a5e1325642c68543495c32fc853f9.zip cpython-91a3b9e4f08a5e1325642c68543495c32fc853f9.tar.gz cpython-91a3b9e4f08a5e1325642c68543495c32fc853f9.tar.bz2 |
Issue #1113244: Py_XINCREF, Py_DECREF, Py_XDECREF: Add `do { ... } while (0)'
to avoid compiler warnings.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/readline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/readline.c b/Modules/readline.c index f5a54bc..d09f09c 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -694,13 +694,13 @@ on_completion_display_matches_hook(char **matches, r = PyObject_CallFunction(completion_display_matches_hook, "sOi", matches[0], m, max_length); - Py_DECREF(m), m=NULL; + Py_DECREF(m); m=NULL; if (r == NULL || (r != Py_None && PyInt_AsLong(r) == -1 && PyErr_Occurred())) { goto error; } - Py_XDECREF(r), r=NULL; + Py_XDECREF(r); r=NULL; if (0) { error: |