DEFevol is known at compile-time, so we can use SPICE_VERIFY to check its value. Signed-off-by: Christophe Fergeau <cfergeau@xxxxxxxxxx> --- common/quic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/quic.c b/common/quic.c index 049a5cd..8567368 100644 --- a/common/quic.c +++ b/common/quic.c @@ -254,7 +254,7 @@ static void set_wm_trigger(CommonState *state) wm = 10; } - spice_assert(DEFevol < 6); + SPICE_VERIFY(DEFevol < 6); state->wm_trigger = besttrigtab[DEFevol / 2][wm]; -- 2.13.3 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel