[Mesa-dev] [PATCH 10/12] intel/tools: initialise bo_addr to 0 in main

Kai Wasserb├Ąch kai at dev.carbon-project.org
Sat Aug 18 11:16:14 UTC 2018


Supresses a maybe-uninitialized warning with GCC 8.

Signed-off-by: Kai Wasserb├Ąch <kai at dev.carbon-project.org>
---
 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 2030593691..8a23d5ef1e 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.18.0



More information about the mesa-dev mailing list