From: Kai Wasserbäch Date: Sat, 18 Aug 2018 11:16:10 +0000 (+0200) Subject: intel/aubinator_error_decode: mark ret as MAYBE_UNUSED in main X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64c2bca59f903142b8e4807ed7577f84a385e335;p=mesa.git intel/aubinator_error_decode: mark ret as MAYBE_UNUSED in main Only used, when asserts are enabled. Fixes an unused-but-set-variable warning with GCC 8: ../../../src/intel/tools/aubinator_error_decode.c: In function 'main': ../../../src/intel/tools/aubinator_error_decode.c:759:11: warning: variable 'ret' set but not used [-Wunused-but-set-variable] int ret; ^~~ Signed-off-by: Kai Wasserbäch Reviewed-by: Lionel Landwerlin --- diff --git a/src/intel/tools/aubinator_error_decode.c b/src/intel/tools/aubinator_error_decode.c index 4e3359bba9f..d7f9d9f2af1 100644 --- a/src/intel/tools/aubinator_error_decode.c +++ b/src/intel/tools/aubinator_error_decode.c @@ -756,7 +756,7 @@ main(int argc, char *argv[]) setup_pager(); if (S_ISDIR(st.st_mode)) { - int ret; + MAYBE_UNUSED int ret; char *filename; ret = asprintf(&filename, "%s/i915_error_state", path);