Review report

core: PR #36623

1 suggestion

Earlier concerns neither republished nor resolved: 1 major finding. See the Run archive for their assessments.

Optional improvements

Link

[suggestion] · A Clang-only suppression preserves an unreachable OP_RETURN break

The break cannot run after the unconditional return, so the pragma adds compiler-specific suppression to consensus-critical code without changing script validity.

Location: src/script/interpreter.cpp:683 (head).

Details and suggested fix

In EvalScript, the OP_RETURN case returns SCRIPT_ERR_OP_RETURN before reaching the following break. The newly enabled warning reports that unreachable statement. Delete the break and its Clang diagnostic pragmas. The return already exits EvalScript, so script evaluation remains unchanged, and the interpreter diff is smaller. The PR removes equivalent unreachable breaks elsewhere without suppressions; this suppression adds seven preprocessor lines to the interpreter.


Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.