1 minor finding · 1 suggestion
Earlier concerns neither republished nor resolved: 2 suggestions. See the Run archive for their assessments.
Findings
[minor] · clang-cl skips the fuzz initialization warning suppression
clang-cl skips this suppression in non-Debug builds with BUILD_FUZZ_BINARY=ON and BUILD_FOR_FUZZING=OFF, leaving a new -Wmissing-noreturn diagnostic; a warning-as-error failure is inferred from source, not reproduced.
Location: src/test/fuzz/fuzz.cpp:94 (head).
Details and suggested fix
The warning flag is added outside if(MSVC), and test_fuzz inherits it through core_interface. In this configuration, G_FUZZING_BUILD and G_ABORT_ON_FAILED_ASSUME are false, so initialize() necessarily calls std::exit and qualifies for the missing-attribute warning. However, clang-cl does not define __GNUC__, so neither pragma guard runs. With CMAKE_COMPILE_WARNING_AS_ERROR=ON, the diagnostic becomes a build error in the documented Release compile/link-check configuration. Include defined(__clang__) in both guards, since Clang accepts #pragma GCC diagnostic.
Optional improvements
[suggestion] · [[noreturn]] is stronger than the IPC proxy contract
Generated IPC overrides can return on success despite the new [[noreturn]] contract; current servers throw, and no C++ proxy caller of either deprecated method was found.
Location: src/interfaces/init.h:51 (head).
Details and suggested fix
For Init::makeMiningOld2 and BlockTemplate::submitSolutionOld7, gen.cpp emits proxy overrides that call clientInvoke and then fall through or return a result. clientInvoke can return normally on success. If a peer supplies a successful reply to a C++ call through the base interface, the override therefore returns through a call declared [[noreturn]], causing undefined behavior. No successful older-peer call was established. Leave these two virtuals without [[noreturn]] and suppress -Wmissing-noreturn locally instead of imposing a guarantee the generated clients do not enforce.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]:
AssertUnreachable()drops test and fuzz diagnostic reasons (earlier report) - [suggestion]: Suppression disables
-Wmissing-noreturnthroughoutinitialize()(earlier report)
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
The immediate historical motivation was that an absent noreturn declaration could make GCC analyze an impossible continuation path and emit a misleading memory-access warning. In #35896, a warning initially described as a GCC 14 false positive was addressed by marking the assertion-failure helper [[noreturn]]. The follow-up explanation emphasized that the diagnostic depended on optimization visibility, object layout, and even the selected C++ language version.
This explains why explicit non-return information matters beyond stylistic annotation: compiler diagnostics can depend on knowing that failure paths cannot continue. It supports the motivation for the added attributes, but does not establish which compiler versions require every annotation in this patch.
Source 1 · Source 2 · Source 3
The related libmultiprocess work records a separate compatibility constraint for attributes on lambdas: its author reported that a proposed -Wno-c++23-lambda-attributes build adjustment did not work for older Clang versions or MSVC and supplied a revised adjustment.
Several changed attributes are attached to lambdas, so attribute syntax and warning-option portability are relevant independently of whether a function returns. This source does not name the affected Clang versions and does not explain the missing-noreturn pragma's scope; those constraints should not be conflated.