commit | 43dc2a645e00e6761a741e3d16c27c5b5a373b66 | [log] [tgz] |
---|---|---|
author | Blue Swirl <blauwirbel@gmail.com> | Thu Mar 18 18:41:57 2010 +0000 |
committer | Blue Swirl <blauwirbel@gmail.com> | Thu Mar 18 18:41:57 2010 +0000 |
tree | daf9f3fd9fa34306ac03fbb6efc72860efc879ca | |
parent | 609c1daced7f444f9f6569bba72d6a56a697ac95 [diff] [blame] |
Replace assert(0) with abort() or cpu_abort() When building with -DNDEBUG, assert(0) will not stop execution so it must not be used for abnormal termination. Use cpu_abort() when in CPU context, abort() otherwise. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
diff --git a/qdict.c b/qdict.c index 7fb425a..aae57bf 100644 --- a/qdict.c +++ b/qdict.c
@@ -194,8 +194,7 @@ case QTYPE_QINT: return qint_get_int(qobject_to_qint(obj)); default: - assert(0); - return 0.0; + abort(); } }