Changeset: 97c67fc80766 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=97c67fc80766
Modified Files:
        clients/mapiclient/tomograph.c
Branch: default
Log Message:

let's listen to and use the compiler rather than silence it


diffs (21 lines):

diff --git a/clients/mapiclient/tomograph.c b/clients/mapiclient/tomograph.c
--- a/clients/mapiclient/tomograph.c
+++ b/clients/mapiclient/tomograph.c
@@ -1426,7 +1426,7 @@ static void gnuplotheader(char *filename
 static void createTomogram(void)
 {
        char buf[BUFSIZ];
-       int rows[MAXTHREADS];
+       int rows[MAXTHREADS] = {0};
        int top = 0;
        int i, j;
        int h, prevobject = 1;
@@ -1458,8 +1458,6 @@ static void createTomogram(void)
        fprintf(gnudata, "set xrange ["LLFMT".0:"LLFMT".0]\n", startrange, 
lastclktick - starttime);
 
        /* detect all different threads and assign them a row */
-       for (j = 0; j < MAXTHREADS; j++)
-               rows[j]=0; // needed to silense compiler
        for (i = 0; i < topbox; i++)
                if (box[i].clkend && box[i].state != PING) {
                        for (j = 0; j < top; j++)
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to