diff options
author | Emil Velikov <[email protected]> | 2016-09-19 15:35:32 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2016-10-06 15:03:46 +0100 |
commit | 9b7fd4080a9439acbb3cbf8b0be50c5b176dac0f (patch) | |
tree | 99f3b13bf8a901340c3b89317c2c9bb5d4d67ab7 | |
parent | 0b6837a643bbbf3c57c5cc5030279fb4389b23b7 (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]>
-rw-r--r-- | src/gallium/state_trackers/xvmc/tests/xvmc_bench.c | 2 |
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> |