Skip to content

Commit

Permalink
Remove binding of NULL to non-pointer variable
Browse files Browse the repository at this point in the history
Fix plinux warning concerning a conversion from NULL to intptr_t
by removing the initial assignment of variable 'address' to NULL

Signed-off-by: Dylan Tuttle <[email protected]>
  • Loading branch information
dylanjtuttle committed Nov 9, 2023
1 parent 01e77f6 commit 9ee362b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/p/codegen/ControlFlowEvaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4089,7 +4089,7 @@ static void lookupScheme4(TR::Node *node, TR::CodeGenerator *cg)
bool two_reg = isInt64 && cg->comp()->target().is32Bit();
int32_t *dataTable = NULL;
int64_t *dataTable64 = NULL;
intptr_t address = NULL;
intptr_t address = 0;
if (isInt64)
{
dataTableSize *= 2;
Expand Down

0 comments on commit 9ee362b

Please sign in to comment.