Skip to content

Commit

Permalink
ArmPkg: ArmGic: fix warning about uninitialized variable
Browse files Browse the repository at this point in the history
ArmGicLib.c: In function 'ArmGicAcknowledgeInterrupt':
ArmGicLib.c:200:18: error: 'IntId' may be used uninitialized
  in this function [-Werror=maybe-uninitialized]
     *InterruptId = IntId;
     ~~~~~~~~~~~~~^~~~~~~

cc1: all warnings being treated as errors

Signed-off-by: Mike Maslenkin <[email protected]>
  • Loading branch information
ghbaccount committed Jan 9, 2025
1 parent 7262029 commit 1add77f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ArmPkg/Drivers/ArmGic/ArmGicLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ ArmGicAcknowledgeInterrupt (
// Report Spurious interrupt which is what the above controllers would
// return if no interrupt was available
Value = 1023;
IntId = Value;
}

if (InterruptId != NULL) {
Expand Down

0 comments on commit 1add77f

Please sign in to comment.