From 3479897224c4c4c5400061f232f27b4d8650e8b3 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 31 Mar 2022 00:37:53 +0900 Subject: [PATCH] [qfcc] Fix some not uninitialized warnings The "not" because I'm pretty sure they're false positives due to when the function is called, but clang doesn't know that (wonder why gcc was ok with it). --- tools/qfcc/source/expr_binary.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/qfcc/source/expr_binary.c b/tools/qfcc/source/expr_binary.c index 832abdc09..6c792a1de 100644 --- a/tools/qfcc/source/expr_binary.c +++ b/tools/qfcc/source/expr_binary.c @@ -647,10 +647,10 @@ pointer_arithmetic (int op, expr_t *e1, expr_t *e2) { type_t *t1 = get_type (e1); type_t *t2 = get_type (e2); - expr_t *ptr; - expr_t *offset; + expr_t *ptr = 0; + expr_t *offset = 0; expr_t *psize; - type_t *ptype; + type_t *ptype = 0; if (!is_ptr (t1) && !is_ptr (t2)) { internal_error (e1, "pointer arithmetic on non-pointers");