aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/xvmc
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2016-09-19 15:35:32 +0100
committerEmil Velikov <[email protected]>2016-10-06 15:03:46 +0100
commit9b7fd4080a9439acbb3cbf8b0be50c5b176dac0f (patch)
tree99f3b13bf8a901340c3b89317c2c9bb5d4d67ab7 /src/gallium/state_trackers/xvmc
parent0b6837a643bbbf3c57c5cc5030279fb4389b23b7 (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/xvmc')
-rw-r--r--src/gallium/state_trackers/xvmc/tests/xvmc_bench.c2
1 files changed, 2 insertions, 0 deletions
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 <assert.h>
#include <stdio.h>
#include <string.h>