Resolved a couple gcc compiler warnings in trace logger.

This commit is contained in:
harry 2024-02-23 09:09:08 -05:00
parent b25f56fe12
commit 80f17c664b
1 changed files with 1 additions and 16 deletions

View File

@ -924,21 +924,6 @@ int traceRecord_t::appendAsmText(const char *txt)
return 0; return 0;
} }
//---------------------------------------------------- //----------------------------------------------------
static int convToXchar(int i)
{
int c = 0;
if ((i >= 0) && (i < 10))
{
c = i + '0';
}
else if (i < 16)
{
c = (i - 10) + 'A';
}
return c;
}
//----------------------------------------------------
int traceRecord_t::convToText(char *txt, int *len) int traceRecord_t::convToText(char *txt, int *len)
{ {
int i = 0, j = 0; int i = 0, j = 0;
@ -2438,7 +2423,7 @@ void TraceLogDiskThread_t::run(void)
const unsigned bufSize = blockSize * 2; const unsigned bufSize = blockSize * 2;
const unsigned flushSize = blockSize; const unsigned flushSize = blockSize;
char buf[bufSize]; char buf[bufSize];
int i, idx=0; unsigned int i, idx=0;
logFile = open( logFilePath.c_str(), O_CREAT | O_WRONLY | O_TRUNC, logFile = open( logFilePath.c_str(), O_CREAT | O_WRONLY | O_TRUNC,
S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH ); S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH );