Commit 158d675
committed
Value-initialize CompiledInstr::opcode
cppcheck (uninitMemberVarNoCtor) flags the scalar `opcode` member as
having no initializer while its sibling container members self-init.
Every real construction aggregate-initializes all fields, so this was
never a live bug, but value-initializing it gives a default-constructed
instr a defined opcode and keeps the check clean.
Surfaced by the brew cppcheck (2.21) in CI, which enables this check
where the older local 2.13 did not.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AXguXGhUbH1pXz3Cdr7xec1 parent 5760606 commit 158d675
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| |||
0 commit comments