HomeFreeBSD

Disable -Wreturn-type on GCC.

Description

Disable -Wreturn-type on GCC.

GCC is more pedantic than clang about warning when a function doesn't
handle undefined enum values (see GCC bug 87950). Clang's warning
gives a more pragmatic coverage and should find any real bugs, so
disable the warning for GCC rather than adding __unreachable
annotations to appease GCC.

Reviewed by: imp, emaste
Differential Revision: https://reviews.freebsd.org/D34147

(cherry picked from commit 2f6a842484675bb8fe9fafd40d90c06f13e02403)

Details

Provenance
jhbAuthored on Feb 14 2022, 7:48 PM
Reviewer
imp
Differential Revision
D34147: Disable -Wreturn-type on GCC.
Parents
rG5bd5219d15c0: Cast pointer to uintptr_t to avoid alignment warnings.
Branches
Unknown
Tags
Unknown