From 9b7fd4080a9439acbb3cbf8b0be50c5b176dac0f Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 19 Sep 2016 15:35:32 +0100 Subject: 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(+) (limited to 'src/gallium/state_trackers/xvmc') diff --git a/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c b/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c index 4dc95ba..3cd2317 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 -- cgit v1.1