From 4228e052b32ed6d27df03abc817961b06f0b377f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kai=20Wasserb=C3=A4ch?= Date: Sat, 18 Aug 2018 13:16:14 +0200 Subject: [PATCH] intel/tools: initialise bo_addr to 0 in main MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Supresses a maybe-uninitialized warning with GCC 8. Signed-off-by: Kai Wasserbäch Reviewed-by: Lionel Landwerlin --- src/intel/tools/error2aub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2