Skip to content

Commit

Permalink
Fix uninit warning in gcc 12 (#6329)
Browse files Browse the repository at this point in the history
Fixes an uninitialized var warning in gcc 12.
  • Loading branch information
derekbruening authored Sep 25, 2023
1 parent 481e272 commit a73e526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/ir/aarch64/codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -4137,7 +4137,7 @@ encode_opnd_wx5_imm5(uint enc, int opcode, byte *pc, opnd_t opnd, OUT uint *enc_
{
if (!opnd_is_reg(opnd))
ASSERT(false);
uint num;
uint num = 0;
bool is_x;
if (!encode_reg(&num, &is_x, opnd_get_reg(opnd), false))
ASSERT(false);
Expand Down

0 comments on commit a73e526

Please sign in to comment.