st/xvmc/tests: force enable assertions
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 19 Sep 2016 14:35:32 +0000 (15:35 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 6 Oct 2016 14:03:46 +0000 (15:03 +0100)
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 <emil.velikov@collabora.com>
src/gallium/state_trackers/xvmc/tests/xvmc_bench.c

index 4dc95babce3056b6d43ed2c36cb4d2adaf88c8dc..3cd23173c7c7f257369a0e5fbe2da5325a580088 100644 (file)
@@ -25,6 +25,8 @@
  *
  **************************************************************************/
 
+/* Force assertions, even on release builds. */
+#undef NDEBUG
 #include <assert.h>
 #include <stdio.h>
 #include <string.h>