Skip to content

src: Add two patches for -Wunused-but-set-global#333

Merged
nathanchance merged 1 commit intoClangBuiltLinux:mainfrom
nathanchance:updates-patches-for-tot-llvm
Apr 17, 2026
Merged

src: Add two patches for -Wunused-but-set-global#333
nathanchance merged 1 commit intoClangBuiltLinux:mainfrom
nathanchance:updates-patches-for-tot-llvm

Conversation

@nathanchance
Copy link
Copy Markdown
Member

Tip of tree LLVM has a new subwarning under -Wunused-but-set-variable, -Wunused-but-set-global, that triggers in a couple of places in the host tools. Since commit 7ded7d37e5f5 ("scripts/Makefile.extrawarn: Respect CONFIG_WERROR / W=e for hostprogs") in 6.18, -Werror has been enabled in HOSTCFLAGS with CONFIG_WERROR, which may be enabled by defconfigs. Add the two known fixes needed for a clean build. They should both be merged in 7.1 then they can be backported to the stable trees.

Tip of tree LLVM has a new subwarning under -Wunused-but-set-variable,
-Wunused-but-set-global, that triggers in a couple of places in the host
tools. Since commit 7ded7d37e5f5 ("scripts/Makefile.extrawarn: Respect
CONFIG_WERROR / W=e for hostprogs" in 6.18, -Werror has been enabled in
HOSTCFLAGS with CONFIG_WERROR, which may be enabled by defconfigs. Add
the two known fixes needed for a clean build. They should both be merged
in 7.1 then they can be backported to the stable trees.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
@nathanchance nathanchance merged commit 69e1260 into ClangBuiltLinux:main Apr 17, 2026
8 checks passed
@msfjarvis msfjarvis deleted the updates-patches-for-tot-llvm branch April 17, 2026 05:28
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