diff options
author | Kai Wasserbäch <[email protected]> | 2018-08-18 13:16:10 +0200 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2018-08-20 11:08:52 +0100 |
commit | 64c2bca59f903142b8e4807ed7577f84a385e335 (patch) | |
tree | a923fd3367019f933b0e647e881b2ece272d04b1 /src/intel/tools | |
parent | 0aacb5eab6120aa1410966d23101e16eea3fbcd7 (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/intel/tools')
-rw-r--r-- | src/intel/tools/aubinator_error_decode.c | 2 |
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); |