intel/tools: initialise bo_addr to 0 in main
authorKai Wasserbäch <kai@dev.carbon-project.org>
Sat, 18 Aug 2018 11:16:14 +0000 (13:16 +0200)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 20 Aug 2018 10:08:52 +0000 (11:08 +0100)
Supresses a maybe-uninitialized warning with GCC 8.

Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/tools/error2aub.c

index 2030593691cc4ba6dba0a28a137d2d3ddc52dd02..8a23d5ef1e7445faa9cc704867b896223108dde9 100644 (file)
@@ -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;