Module: Mesa Branch: master Commit: 9b7fd4080a9439acbb3cbf8b0be50c5b176dac0f URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9b7fd4080a9439acbb3cbf8b0be50c5b176dac0f
Author: Emil Velikov <[email protected]> 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 <[email protected]> --- 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> _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
