aboutsummaryrefslogtreecommitdiff
path: root/tests/test-qmp-output-visitor.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2013-07-25 18:21:28 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2013-07-27 11:22:54 +0400
commitdfc6f86567c58bc4dd02f4db098fc4c2221e85b5 (patch)
treed493db0a108de25c7d2afaab885ec2d39ffe2c74 /tests/test-qmp-output-visitor.c
parentb031f413b9e68899032f04fc05fd0a6b62039b2b (diff)
downloadqemu-dfc6f86567c58bc4dd02f4db098fc4c2221e85b5.zip
qemu-dfc6f86567c58bc4dd02f4db098fc4c2221e85b5.tar.gz
qemu-dfc6f86567c58bc4dd02f4db098fc4c2221e85b5.tar.bz2
misc: Use g_assert_not_reached for code which is expected to be unreachable
The macro g_assert_not_reached is a better self documenting replacement for assert(0) or assert(false). Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'tests/test-qmp-output-visitor.c')
-rw-r--r--tests/test-qmp-output-visitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-qmp-output-visitor.c b/tests/test-qmp-output-visitor.c
index b2fa9a7..e073d83 100644
--- a/tests/test-qmp-output-visitor.c
+++ b/tests/test-qmp-output-visitor.c
@@ -559,7 +559,7 @@ static void init_native_list(UserDefNativeListUnion *cvalue)
break;
}
default:
- g_assert(false);
+ g_assert_not_reached();
}
}
@@ -645,7 +645,7 @@ static void check_native_list(QObject *qobj,
}
break;
default:
- g_assert(false);
+ g_assert_not_reached();
}
QDECREF(qlist);
}