Commit 1221eae
authored
Explicitly initialize two local variables to 0 (#3046)
GCC 12 (in Debian Bookworm) claims that on armhf targets, the `lower`
local variable in `Orch::generateIdListFromMap` could potentially be
used uninitialized a few lines later when it's being converted to a
string. I don't see how that could be the case here, since if the string
is being printed, the only code path where this is possible requires
`lower` to have been set to something.
To silence the warning, set both `lower` and `upper` to 0 explicitly.1 parent b3b6a83 commit 1221eae
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
697 | 697 | | |
698 | 698 | | |
699 | 699 | | |
700 | | - | |
| 700 | + | |
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
| |||
0 commit comments