You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The http_parser.c library uses legacy /* fall through */ comments to
denote intentional fall-throughs in switch statements.
However, Linux kernels build external modules with stricter checks.
Since v5.14, the build system enforces -Wimplicit-fallthrough=5, which
deprecates comment markers and requires an explicit macro (commit
b7eb335e26a9, "Makefile: Enable -Wimplicit-fallthrough for Clang").
This change causes numerous build warnings when compiling http_parser.c.
To resolve this without modifying the upstream source file, this commit
adds a sed rule to the Makefile. This rule automatically converts the
legacy comments to the kernel-preferred fallthrough; pseudo-keyword at
build time, ensuring a clean build against modern kernels.
Link: Documentation/process/deprecated.rst ("fallthrough")
0 commit comments