From: Frederic Marchal Date: Fri, 25 Jan 2013 19:48:13 +0000 (+0100) Subject: Suppress warnings from the compiler for unused variables X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=40cd345e67381d85d326c0013279f7dd1b81fd34;p=thirdparty%2Fsarg.git Suppress warnings from the compiler for unused variables --- diff --git a/readlog.c b/readlog.c index 0aa86af..f3e3d7b 100644 --- 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++; diff --git a/readlog_extlog.c b/readlog_extlog.c index 75fb96e..93dc172 100644 --- a/readlog_extlog.c +++ b/readlog_extlog.c @@ -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;