]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Suppress warnings from the compiler for unused variables
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Fri, 25 Jan 2013 19:48:13 +0000 (20:48 +0100)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Fri, 25 Jan 2013 19:48:13 +0000 (20:48 +0100)
readlog.c
readlog_extlog.c

index 0aa86af404b83ff12e2fb047e7e4ce4f82a755c2..f3e3d7b57a64192eaaa7ad5be06e757efbf71650 100644 (file)
--- a/readlog.c
+++ b/readlog.c
@@ -146,7 +146,6 @@ static void ReadOneLogFile(struct ReadLogDataStruct *Filter,const char *arq)
        char smartfilter[MAXLEN];
        const char *url;
        int current_format_idx;
-       int blen;
        int OutputNonZero = REPORT_EVERY_X_LINES ;
        int idata=0;
        int x;
@@ -240,7 +239,6 @@ static void ReadOneLogFile(struct ReadLogDataStruct *Filter,const char *arq)
        }
 
        while ((linebuf=longline_read(fp_in,line))!=NULL) {
-               blen=strlen(linebuf);
                lines_read++;
 
                recs2++;
index 75fb96efbd02d425815df28af3a14199b2faedb5..93dc172f20fd1e09d1af1bcd2f15a9a06e6deb3c 100644 (file)
@@ -118,10 +118,12 @@ static bool ExtLog_Fields(const char *columns)
                                }
                        }
                }
+               (void)prefix;//compiler pacifier
                if (i<0) len=0;
                for ( ; (unsigned char)columns[len]>' ' ; len++) {//skip a word and accept any separator (tab or space)
                        if (header_start>=0 && columns[len]==')') header_end=len;
                }
+               (void)header_end;//compiler pacifier
                col_sep=columns[len];
                ExtColSep[col]=col_sep;