]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
ast_binstore_codegen initialize left ir value to null for output left side used for...
authorDale Weiler <killfieldengine@gmail.com>
Fri, 23 Nov 2012 06:26:19 +0000 (06:26 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Fri, 23 Nov 2012 06:26:19 +0000 (06:26 +0000)
Makefile
ast.c
util.c

index 7420ccc7f13580c45460450ab6749e41289a6614..84334157040d4bf900c8018964ac04bba6d0a62b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,8 @@ ifeq ($(CC), clang)
                -Wno-padded                   \
                -Wno-format-nonliteral        \
                -Wno-disabled-macro-expansion \
                -Wno-padded                   \
                -Wno-format-nonliteral        \
                -Wno-disabled-macro-expansion \
-               -Wno-conversion
+               -Wno-conversion               \
+               -Wno-missing-prototypes
 
 endif
 ifeq ($(track), no)
 
 endif
 ifeq ($(track), no)
diff --git a/ast.c b/ast.c
index 6cad3c0f3a288efb7b71341ba5a3a4465f67020d..7061f1eff909e5ab63d30d5647398499d69d4a78 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -1641,7 +1641,7 @@ bool ast_binary_codegen(ast_binary *self, ast_function *func, bool lvalue, ir_va
 bool ast_binstore_codegen(ast_binstore *self, ast_function *func, bool lvalue, ir_value **out)
 {
     ast_expression_codegen *cgen;
 bool ast_binstore_codegen(ast_binstore *self, ast_function *func, bool lvalue, ir_value **out)
 {
     ast_expression_codegen *cgen;
-    ir_value *leftl, *leftr, *right, *bin;
+    ir_value *leftl = NULL, *leftr, *right, *bin;
 
     ast_value       *arr;
     ast_value       *idx = 0;
 
     ast_value       *arr;
     ast_value       *idx = 0;
diff --git a/util.c b/util.c
index e6823e95f6b8b1154a62e8f0e1f12d1e03dbf341..91447785fbf6a06eea3801be35942f00dd0b5b81 100644 (file)
--- a/util.c
+++ b/util.c
@@ -527,7 +527,7 @@ typedef struct hash_node_t {
 
 
 size_t _util_hthash(hash_table_t *ht, const char *key) {
 
 
 size_t _util_hthash(hash_table_t *ht, const char *key) {
-    uint64_t val;
+    uint64_t val = 0;
     size_t   len = strlen(key);
     size_t   itr = 0;
     
     size_t   len = strlen(key);
     size_t   itr = 0;