Skip to content

Commit

Permalink
Fixed Uninitialized warnings;
Browse files Browse the repository at this point in the history
Fixed conversion from string literal to char * warnings (Fix is in omr Debug.cpp)

Issue eclipse-openj9#897

Signed-off-by: Matthew Hall <matthew.hall3@outlook.com>
  • Loading branch information
matthewhall2 committed Aug 21, 2024
1 parent 0952b8b commit 7ce64e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/compiler/z/codegen/J9TreeEvaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3533,7 +3533,7 @@ generateTestBitFlag(
int32_t size,
uint64_t bitFlag)
{
TR::MemoryReference * tempMR;
TR::MemoryReference * tempMR = nullptr;
int shiftForFlag = TR::TreeEvaluator::checkNonNegativePowerOfTwo((int64_t) bitFlag);
TR_ASSERT(shiftForFlag > 0, "generateTestBitFlag: flag is assumed to be power of 2\n");

Expand Down Expand Up @@ -3822,7 +3822,7 @@ VMCardCheckEvaluator(
uintptr_t cardSize = comp->getOptions()->getGcCardSize();
int32_t shiftValue = TR::TreeEvaluator::checkNonNegativePowerOfTwo((int32_t) cardSize);

TR::Register * cardOffReg;
TR::Register * cardOffReg = nullptr;
TR::Register * mdReg = cg->getMethodMetaDataRealRegister();

if (!clobberDstReg)
Expand Down Expand Up @@ -10689,7 +10689,7 @@ J9::Z::TreeEvaluator::VMnewEvaluator(TR::Node * node, TR::CodeGenerator * cg)
bool isArray = false, isDoubleArray = false;
bool isVariableLen;
int32_t litPoolRegTotalUse, temp2RegTotalUse;
int32_t elementSize;
int32_t elementSize = 0;
TR::Compilation *comp = cg->comp();
TR_J9VMBase *fej9 = comp->fej9();

Expand Down

0 comments on commit 7ce64e8

Please sign in to comment.