mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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>
This commit is contained in:
parent
b031f413b9
commit
dfc6f86567
10 changed files with 25 additions and 25 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue