From f44f4dad6682505a1a9fc94c1f0646c966a11912 Mon Sep 17 00:00:00 2001 From: carltimmer Date: Fri, 4 Oct 2024 16:07:17 -0400 Subject: [PATCH] get rid of compiler warnings --- src/testC/evtestRead.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/testC/evtestRead.c b/src/testC/evtestRead.c index 7d435ca4a..f43e190b9 100644 --- a/src/testC/evtestRead.c +++ b/src/testC/evtestRead.c @@ -24,7 +24,8 @@ int main2() { - int handle, status, nevents, nwords; + int handle, status, nevents; + //int nwords; uint32_t *buffer, *ip, bufLen; //status = evOpen("/home/timmer/evioTestFiles/evioV2format.ev", "r", &handle); @@ -37,14 +38,14 @@ printf(" Event #%d, len = %d data bytes\n", nevents, 4*(buffer[0] - 1)); ip = buffer; - nwords = buffer[0] + 1; + //nwords = buffer[0] + 1; printf(" Header words\n"); printf(" %#10.8x\n", *ip++); printf(" %#10.8x\n\n", *ip++); printf(" Data words\n"); - nwords -= 2; + //nwords -= 2; free(buffer); @@ -69,7 +70,8 @@ int main() { - int handle, status, nevents, nwords, count = 10; + int handle, status, nevents, count = 10; + //int nwords; uint32_t buffer[50000], *ip; //status = evOpen("/home/timmer/evioTestFiles/evioV2format.ev", "r", &handle); @@ -83,14 +85,14 @@ printf(" Event #%d, len = %d data bytes\n", nevents, 4*(buffer[0] - 1)); ip = buffer; - nwords = buffer[0] + 1; + //nwords = buffer[0] + 1; printf(" Header words\n"); printf(" %#10.8x\n", *ip++); printf(" %#10.8x\n\n", *ip++); printf(" Data words\n"); - nwords -= 2; + //nwords -= 2; if (count-- < 0) { printf("Forced Break\n");