From: Emil Velikov Date: Mon, 19 Sep 2016 14:35:32 +0000 (+0100) Subject: st/xvmc/tests: force enable assertions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b7fd4080a9439acbb3cbf8b0be50c5b176dac0f;p=mesa.git 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 --- 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