aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/tools/error2aub.c
diff options
context:
space:
mode:
authorKai Wasserbäch <[email protected]>2018-08-18 13:16:14 +0200
committerLionel Landwerlin <[email protected]>2018-08-20 11:08:52 +0100
commit4228e052b32ed6d27df03abc817961b06f0b377f (patch)
tree3f55aa3d842d9f93bc0fa47dee4e3ebd9045021e /src/intel/tools/error2aub.c
parentccdefbb559a60c2560118d253a9eaeffd1e94eb6 (diff)
intel/tools: initialise bo_addr to 0 in main
Supresses a maybe-uninitialized warning with GCC 8. Signed-off-by: Kai Wasserbäch <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/tools/error2aub.c')
-rw-r--r--src/intel/tools/error2aub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/tools/error2aub.c b/src/intel/tools/error2aub.c
index 2030593691c..8a23d5ef1e7 100644
--- a/src/intel/tools/error2aub.c
+++ b/src/intel/tools/error2aub.c
@@ -206,7 +206,7 @@ main(int argc, char *argv[])
BO_TYPE_BATCH,
BO_TYPE_USER,
} bo_type = BO_TYPE_UNKNOWN;
- uint64_t bo_addr;
+ uint64_t bo_addr = 0;
char *line = NULL;
size_t line_size;