String constant const-ness changes to placate g++ 4.2.
Also some bug fixes in MIPS ISA uncovered by g++ warnings (Python string compares don't work in C++!). --HG-- extra : convert_revision : b347cc0108f23890e9b73b3ee96059f0cea96cf6
This commit is contained in:
@@ -100,7 +100,7 @@ setupSharedData()
|
||||
// Utility methods for pretty printing a report about a difference
|
||||
//
|
||||
|
||||
inline char * genCenteredLabel(int length, char * buffer, char * label)
|
||||
inline char * genCenteredLabel(int length, char * buffer, const char * label)
|
||||
{
|
||||
int labelLength = strlen(label);
|
||||
assert(labelLength <= length);
|
||||
@@ -127,7 +127,7 @@ inline void printColumnLabels(ostream & os)
|
||||
ccprintf(os, "--------------------+-----------------------+-----------------------\n");
|
||||
}
|
||||
|
||||
inline void printSectionHeader(ostream & os, char * name)
|
||||
inline void printSectionHeader(ostream & os, const char * name)
|
||||
{
|
||||
char sectionString[70];
|
||||
genCenteredLabel(69, sectionString, name);
|
||||
|
||||
Reference in New Issue
Block a user