Fix another Blub bug .. learn to use comments properly :P
authorDale Weiler <killfieldengine@gmail.com>
Fri, 28 Dec 2012 12:54:20 +0000 (12:54 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Fri, 28 Dec 2012 12:54:20 +0000 (12:54 +0000)
code.c
ir.c
splint.sh
utf8.c

diff --git a/code.c b/code.c
index e6cd6a313cd2f6812a69d1482423185894bd1a21..3590b41b97c203c47c96583fffa078aa034deec1 100644 (file)
--- a/code.c
+++ b/code.c
@@ -53,7 +53,7 @@ void code_pop_statement()
 }
 
 void code_init() {
-    prog_section_function  empty_function  = {0,0,0,0,0,0,0,{0}};
+    prog_section_function  empty_function  = {0,0,0,0,0,0,0,{0,0,0,0,0,0,0,0}};
     prog_section_statement empty_statement = {0,{0},{0},{0}};
     prog_section_def       empty_def       = {0, 0, 0};
     int                    i               = 0;
diff --git a/ir.c b/ir.c
index 6081b5545bc049ef78b105a0fdd1275d1dab8ad1..37f68f940660818d4632c2b5f9d12e4ea8ab5709 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -2481,7 +2481,9 @@ static bool ir_block_life_propagate(ir_block *self, ir_block *prev, bool *change
     size_t i, o, p, mem;
     /* bitmasks which operands are read from or written to */
     size_t read, write;
-    char dbg_ind[16] = { '#', '0' };
+    char dbg_ind[16];
+    dbg_ind[0] = '#';
+    dbg_ind[1] = '0';
     (void)dbg_ind;
 
     if (prev)
index e51b007f465c68211312752b7ca749dee6c40ce0..0aa21316d739b5a0b339d6f3747ef01cad1afd56 100755 (executable)
--- a/splint.sh
+++ b/splint.sh
@@ -63,7 +63,6 @@ FLAGS_MAYBE="\
 #these don't need to be here to onhibit the warning
 # remove one flag from here at a time while fixing the code so that
 FLAGS_TOFIX="\
-    -initallelements     \
     -castfcnptr          \
     -evalorder"
 
diff --git a/utf8.c b/utf8.c
index 7a3f7dcc9c5605a1069f0a38384da76c692cea2a..14510bc09818399944dee9b327aa8146469e7391 100644 (file)
--- a/utf8.c
+++ b/utf8.c
@@ -47,11 +47,11 @@ static unsigned char utf8_lengths[256] = {
 };
 
 static uchar_t utf8_range[5] = {
-       1,       /* invalid - let's not allow the creation of 0-bytes :P
-       1,        * ascii minimum
-       0x80,     * 2-byte minimum
-       0x800,    * 3-byte minimum
-       0x10000,  * 4-byte minimum */
+       1,       /* invalid - let's not allow the creation of 0-bytes :P */
+       1,       /* ascii minimum                                        */
+       0x80,    /* 2-byte minimum                                       */
+       0x800,   /* 3-byte minimum                                       */
+       0x10000, /* 4-byte minimum                                       */
 };
 
 /** Analyze the next character and return various information if requested.