summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKai Wasserbäch <[email protected]>2018-08-18 13:16:10 +0200
committerLionel Landwerlin <[email protected]>2018-08-20 11:08:52 +0100
commit64c2bca59f903142b8e4807ed7577f84a385e335 (patch)
treea923fd3367019f933b0e647e881b2ece272d04b1 /src
parent0aacb5eab6120aa1410966d23101e16eea3fbcd7 (diff)
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 <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/intel/tools/aubinator_error_decode.c2
1 files changed, 1 insertions, 1 deletions
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);