Skip to content

Commit 473941f

Browse files
committed
Fix string literal conversion warnings in omr/compiler/infra
Fix string literal conversion warnings in omr/compiler/infra Signed-off-by: Dylan Tuttle <[email protected]>
1 parent 3962eb5 commit 473941f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

runtime/compiler/optimizer/InlinerTempForJ9.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4048,11 +4048,11 @@ TR_MultipleCallTargetInliner::exceedsSizeThreshold(TR_CallSite *callSite, int by
40484048
return false;
40494049

40504050
TR_J9InlinerPolicy *j9InlinerPolicy = (TR_J9InlinerPolicy *)getPolicy();
4051-
static char *polymorphicCalleeSizeThresholdStr = feGetEnv("TR_InlinerPolymorphicConservatismCalleeSize");
4051+
static const char *polymorphicCalleeSizeThresholdStr = feGetEnv("TR_InlinerPolymorphicConservatismCalleeSize");
40524052
int polymorphicCalleeSizeThreshold = polymorphicCalleeSizeThresholdStr ? atoi(polymorphicCalleeSizeThresholdStr) : 10;
4053-
static char *polymorphicRootSizeThresholdStr = feGetEnv("TR_InlinerPolymorphicConservatismRootSize");
4053+
static const char *polymorphicRootSizeThresholdStr = feGetEnv("TR_InlinerPolymorphicConservatismRootSize");
40544054
int polymorphicRootSizeThreshold = polymorphicRootSizeThresholdStr ? atoi(polymorphicRootSizeThresholdStr) : 30;
4055-
static char *trustedInterfacePattern = feGetEnv("TR_TrustedPolymorphicInterfaces");
4055+
static const char *trustedInterfacePattern = feGetEnv("TR_TrustedPolymorphicInterfaces");
40564056
static TR::SimpleRegex *trustedInterfaceRegex = trustedInterfacePattern ? TR::SimpleRegex::create(trustedInterfacePattern) : NULL;
40574057
// we need to be conservative about inlining potentially highly polymorphic interface calls for
40584058
// functional frameworks like scala - we limit this to hot and above

runtime/compiler/runtime/IProfiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ void printHashedCallSite ( TR_IPHashedCallSite * hcs, ::FILE* fout = stderr, voi
134134

135135
static bool matchesRegularExpression (TR::Compilation* comp) {
136136

137-
static char* cRegex = feGetEnv ("TR_printIfRegex");
137+
static const char *cRegex = feGetEnv ("TR_printIfRegex");
138138
if (cRegex && comp->getOptions())
139139
{
140140
static TR::SimpleRegex * regex = TR::SimpleRegex::create(cRegex);

0 commit comments

Comments
 (0)