Skip to content

Commit

Permalink
get rid of all compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
carltimmer committed Sep 19, 2024
1 parent ca95c57 commit f13a82c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
17 changes: 8 additions & 9 deletions src/libsrc/evio.c
Original file line number Diff line number Diff line change
Expand Up @@ -708,9 +708,9 @@ static int expandBuffer(EVFILE *a, uint32_t newSize);
static int writeEventToBufferV6(EVFILE *a, const uint32_t *buffer, uint32_t wordsToWrite);
static int writeEventToBuffer(EVFILE *a, const uint32_t *buffer,
uint32_t wordsToWrite, int isDictionary);
static int writeNewHeaderV6(EVFILE *a,
uint32_t eventCount, uint32_t blockNumber,
int hasDictionary, int isLast);
//static int writeNewHeaderV6(EVFILE *a,
// uint32_t eventCount, uint32_t blockNumber,
// int hasDictionary, int isLast);
static int writeNewHeader(EVFILE *a,
uint32_t eventCount, uint32_t blockNumber,
int hasDictionary, int isLast);
Expand Down Expand Up @@ -3759,7 +3759,7 @@ static int generatePointerTable(EVFILE *a) {
*/
static int generatePointerTableV6(EVFILE *a) {

int usingBuffer=0, lastRecord=0, firstRecord=1;
int usingBuffer=0, lastRecord=0;
size_t bytesLeft;
uint32_t *pmem, numPointers, evIndex = 0L;

Expand Down Expand Up @@ -3916,10 +3916,9 @@ static int generatePointerTableV6(EVFILE *a) {
*/
static int toAppendPosition(EVFILE *a) {
const int debug = 0;
int usingBuffer=0, readEOF=0, padding;
int usingBuffer=0, readEOF=0;
uint32_t nBytes, *pmem, sixthWord, header[EV_HDSIZ], *pHeader;
uint32_t recordBitInfo, recordEventCount, recordSize, recordHeaderSize, recordNumber = 1;
uint32_t indexLen, userHeaderLen;


/* Only for append mode */
Expand Down Expand Up @@ -4677,9 +4676,9 @@ int evRead(int handle, uint32_t *buffer, uint32_t buflen)
nleft = *(a->next) + 1;
}

int evLen = nleft;
uint32_t *nextOrig = a->next;
uint32_t *bufferOrig = buffer;
// int evLen = nleft;
// uint32_t *nextOrig = a->next;
// uint32_t *bufferOrig = buffer;
//printf("evRead: nleft = 0x%x, a->left = %u, val at a->next = 0x%x\n", nleft, a->left, *(a->next));

/* Is there NOT enough room in buffer to store whole event? */
Expand Down
3 changes: 2 additions & 1 deletion src/libsrc/eviofmtswap.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ eviofmtswap(int32_t *iarr, int nwrd, unsigned short *ifmt, int nfmt, int tolocal
int imt = 0; /* ifmt[] index */
int ncnf = 0; /* how many times must repeat a format */
int lev = 0; /* parenthesis level */
int kcnf, mcnf, iterm = 0;
int kcnf, mcnf;
// int iterm = 0;
int64_t *b64, *b64end;
int32_t *b32, *b32end;
int16_t *b16, *b16end;
Expand Down

0 comments on commit f13a82c

Please sign in to comment.