Skip to content

Commit

Permalink
Makefile: Set -Wno-unused-but-set-variable globally
Browse files Browse the repository at this point in the history
Apparently nobody seems to have tested clang 13 before release, as the whole
coding paradigm of calling a function by assigning its return value to a
variable, which is used all throughout the Linux kernel, becomes broken,
as clang seems utterly drunk when it comes to the actual judgement whether
the variable is really used or not..
  • Loading branch information
Konrad Dybcio authored and jerpelea committed Dec 22, 2021
1 parent 3ce8db7 commit 1db68e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE
KBUILD_CFLAGS := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \
-Werror=implicit-function-declaration -Werror=implicit-int \
-Wno-format-security \
-Wno-format-security -Wno-unused-but-set-variable \
-std=gnu89
KBUILD_CPPFLAGS := -D__KERNEL__
KBUILD_AFLAGS_KERNEL :=
Expand Down

0 comments on commit 1db68e9

Please sign in to comment.