diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2023-10-31 17:50:11 -0600 |
---|---|---|
committer | Gustavo A. R. Silva <gustavoars@kernel.org> | 2024-01-21 17:45:31 -0600 |
commit | 113a61863ecbfb3c29f3eb18fd9813bccf1743c1 (patch) | |
tree | 69bd38229d339652a13b5fcf0a9f67cb2dedf1b1 /Makefile | |
parent | 6613476e225e090cc9aad49be7fa504e290dd33d (diff) |
Makefile: Enable -Wstringop-overflow globally
It seems that we have finished addressing all the remaining
issues regarding -Wstringop-overflow. So, we are now in good
shape to enable this compiler option globally.
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -986,6 +986,8 @@ NOSTDINC_FLAGS += -nostdinc # perform bounds checking. KBUILD_CFLAGS += $(call cc-option, -fstrict-flex-arrays=3) +KBUILD_CFLAGS += $(call cc-option, -Wstringop-overflow) + # disable invalid "can't wrap" optimizations for signed / pointers KBUILD_CFLAGS += -fno-strict-overflow |