Mesa (master): st/xvmc/tests: force enable assertions
Emil Velikov
evelikov at kemper.freedesktop.org
Thu Oct 6 15:20:42 UTC 2016
Module: Mesa
Branch: master
Commit: 9b7fd4080a9439acbb3cbf8b0be50c5b176dac0f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9b7fd4080a9439acbb3cbf8b0be50c5b176dac0f
Author: Emil Velikov <emil.velikov at collabora.com>
Date: Mon Sep 19 15:35:32 2016 +0100
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 <emil.velikov at collabora.com>
---
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 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 <assert.h>
#include <stdio.h>
#include <string.h>
More information about the mesa-commit
mailing list