compiler warning fixes

The fix for tools/convert-trace/Gem5Converter.cc repairs a real issue
which caused a runtime warning to never be displayed.

Change-Id: I5d94acdbffc99d5f2a78f047062c011c6f8ab4e3
This commit is contained in:
Horst Schirmeier
2014-04-27 19:00:02 +02:00
parent 6c5bb9c8ed
commit 6b1f1eba9d
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ aspect CompressState {
} while (remaining); } while (remaining);
gzclose(f); gzclose(f);
return (cbuf - (char *)ptr) / size; return (cbuf - (const char *)ptr) / size;
} }
}; };

View File

@ -43,7 +43,7 @@ bool Gem5Converter::convert()
>> dummy >> dummy >> dec >> access_width >> dummy >> dummy >> dec >> access_width
>> dummy >> dummy >> hex >> access_address; >> dummy >> dummy >> hex >> access_address;
if (!ss) { if (!ss) {
if (ifetch_seen && !access_type.c_str()[0] == '0') { if (ifetch_seen && access_type.c_str()[0] != '0') {
LOG << "input mismatch, input = " << buf << endl; LOG << "input mismatch, input = " << buf << endl;
} }
continue; continue;