From 9b7fd4080a9439acbb3cbf8b0be50c5b176dac0f Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 19 Sep 2016 15:35:32 +0100 Subject: [PATCH] st/xvmc/tests: force enable assertions Similar to the other 'tests', enable assertions in xvmc_bench. This silences the GCC warnings about unused-variable(s), makes the program actually useful, as the XvMC API called. Atm the function calls are omitted, since they're called within the assert. Signed-off-by: Emil Velikov --- src/gallium/state_trackers/xvmc/tests/xvmc_bench.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c b/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c index 4dc95babce3..3cd23173c7c 100644 --- a/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c +++ b/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c @@ -25,6 +25,8 @@ * **************************************************************************/ +/* Force assertions, even on release builds. */ +#undef NDEBUG #include #include #include -- 2.30.2