[Spice-devel] [spice-common v2 4/6] quic: Use SPICE_VERIFY for static check

Christophe Fergeau cfergeau at redhat.com
Tue Aug 1 13:55:07 UTC 2017


DEFevol is known at compile-time, so we can use SPICE_VERIFY to check
its value.

Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
---
 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



More information about the Spice-devel mailing list