diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-04-02 14:43:47 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-04-02 14:43:47 (GMT) |
commit | f9404bf68a067b06986cd85855c43795ec578dbd (patch) | |
tree | 57f481aced2c69ddf6ac9766f310be86ebe03f6f /plugins/pychrysalide | |
parent | d69503d7aeceddc52dfee9481e6a0e8ba9c1fc85 (diff) |
Removed lots of uninitialized uses, mostly in NDEBUG mode.
Diffstat (limited to 'plugins/pychrysalide')
-rw-r--r-- | plugins/pychrysalide/arch/immediate.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/pychrysalide/arch/immediate.c b/plugins/pychrysalide/arch/immediate.c index f1ec125..794571d 100644 --- a/plugins/pychrysalide/arch/immediate.c +++ b/plugins/pychrysalide/arch/immediate.c @@ -25,6 +25,7 @@ #include "immediate.h" +#include <assert.h> #include <pygobject.h> @@ -181,6 +182,14 @@ static PyObject *py_imm_operand_get_value(PyObject *self, void *closure) g_imm_operand_get_value(operand, size, &sval64); result = PyLong_FromLongLong(sval64); break; + + /* Pour GCC... */ + default: + assert(false); + result = Py_None; + Py_INCREF(result); + break; + } return result; |