From 6da6277b77b5de3fa874ffd1989ef59a67ef39dd Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Fri, 14 Nov 2008 16:04:14 +0000 Subject: Remove unneeded variables git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@33 0d43b9a7-5ab2-4d7b-af9d-f64450cef757 --- hardware.c | 1 - neural.c | 2 +- stringsort.c | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/hardware.c b/hardware.c index 20341c2..5f29d1a 100644 --- a/hardware.c +++ b/hardware.c @@ -146,7 +146,6 @@ static void readProcCpuInfo (char *model, char *cache) { ** Writes output */ void hardware(const int write_to_file, FILE *global_ofile) { - char buffer[BUF_SIZ]; char os[BUF_SIZ]; char model[BUF_SIZ]; char cache[BUF_SIZ]; diff --git a/neural.c b/neural.c index c482944..6cd3c89 100644 --- a/neural.c +++ b/neural.c @@ -117,7 +117,7 @@ static int read_data_file(); void DoNNET(void) { - const char* context="CPU:NNET"; +/* const char* context="CPU:NNET"; */ /* Since we never fprintf errors here, we don't need this */ NNetStruct* locnnetstruct = &global_nnetstruct; clock_t total_time = 0; int iterations = 0; diff --git a/stringsort.c b/stringsort.c index 6b675de..4cb9a45 100644 --- a/stringsort.c +++ b/stringsort.c @@ -127,7 +127,6 @@ DoStringSortIteration(unsigned char *arraybase, unsigned int numarrays,unsigned unsigned long *optrarray; /* Offset pointer array */ clock_t start, stop; unsigned long nstrings; /* # of strings in array */ - int syserror; /* System error code */ unsigned int i; /* Index */ unsigned long *tempobase; /* Temporary offset pointer base */ unsigned char *tempsbase; /* Temporary string base pointer */ @@ -183,7 +182,6 @@ unsigned char i; /* Index */ unsigned long j; /* Another index */ unsigned int k; /* Yet another index */ unsigned int l; /* Ans still one more index */ -int systemerror; /* For holding error code */ /* ** Initialize random number generator. -- cgit v1.2.3