summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2008-11-14 16:04:14 +0000
committerMatt Turner <mattst88@gmail.com>2008-11-14 16:04:14 +0000
commit6da6277b77b5de3fa874ffd1989ef59a67ef39dd (patch)
treef13efe83ce2a550ae26b07b8c51a85eae73ae809
parentfdb0f96aa0254eb5864d34fb3ae734e178935a3f (diff)
Remove unneeded variables
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@33 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
-rw-r--r--hardware.c1
-rw-r--r--neural.c2
-rw-r--r--stringsort.c2
3 files changed, 1 insertions, 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.