Skip to content

fatal_assert: make fatal_error static inline - #1434

Closed
zgiles wants to merge 1 commit into
mobile-shell:masterfrom
zgiles:fix/fatal-assert-werror
Closed

zgiles wants to merge 1 commit into
mobile-shell:masterfrom
zgiles:fix/fatal-assert-werror

Conversation

@zgiles

@zgiles zgiles commented Oct 22, 2026

Copy link
Copy Markdown

Files that include fatal_assert.h without using it hit -Wunused-function, which breaks -Werror builds (e.g. GCC on Fedora).

The header defines fatal_error() as a plain static function. Translation
units that include fatal_assert.h but never invoke fatal_assert() (e.g.
statesync/completeterminal.cc) then trip -Wunused-function, which is fatal
under -Werror on stricter toolchains (GCC on Fedora). Marking it static
inline exempts it from -Wunused-function without changing linkage or
behavior.
@achernya achernya closed this Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants