Skip to content

Commit

Permalink
Fix string literal conversion warnings in runtime/compiler/runtime
Browse files Browse the repository at this point in the history
Fix string literal conversion warnings in runtime/compiler/runtime

Signed-off-by: Dylan Tuttle <[email protected]>
  • Loading branch information
dylanjtuttle committed Dec 13, 2023
1 parent 4171e87 commit 874fe48
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions runtime/compiler/runtime/RelocationRuntime.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,17 +301,17 @@ class TR_RelocationRuntime {
virtual bool validateAOTHeader(TR_FrontEnd *fe, J9VMThread *curThread);
virtual OMRProcessorDesc getProcessorDescriptionFromSCC(J9VMThread *curThread);

static uintptr_t getGlobalValue(uint32_t g)
static uintptr_t getGlobalValue(uint32_t g)
{
TR_ASSERT(g >= 0 && g < TR_NumGlobalValueItems, "invalid index for global item");
return _globalValueList[g];
}
static void setGlobalValue(uint32_t g, uintptr_t v)
static void setGlobalValue(uint32_t g, uintptr_t v)
{
TR_ASSERT(g >= 0 && g < TR_NumGlobalValueItems, "invalid index for global item");
_globalValueList[g] = v;
}
static const char * nameOfGlobal(uint32_t g)
static const char *nameOfGlobal(uint32_t g)
{
TR_ASSERT(g >= 0 && g < TR_NumGlobalValueItems, "invalid index for global item");
return _globalValueNames[g];
Expand Down Expand Up @@ -385,10 +385,10 @@ class TR_RelocationRuntime {
TR_AotRelocationCleanUp _relocationStatus;
void relocationFailureCleanup();

static bool _globalValuesInitialized;
static uintptr_t _globalValueList[TR_NumGlobalValueItems];
static uint8_t _globalValueSizeList[TR_NumGlobalValueItems];
static const char *_globalValueNames[TR_NumGlobalValueItems];
static bool _globalValuesInitialized;
static uintptr_t _globalValueList[TR_NumGlobalValueItems];
static uint8_t _globalValueSizeList[TR_NumGlobalValueItems];
static const char *_globalValueNames[TR_NumGlobalValueItems];

TR_RelocationErrorCode _reloErrorCode;
static const char *_reloErrorCodeNames[];
Expand Down

0 comments on commit 874fe48

Please sign in to comment.