Skip to content
Commit 1344794a authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Masahiro Yamada
Browse files

Kbuild: add -Wno-shift-negative-value where -Wextra is used



As a preparation for moving to -std=gnu11, turn off the
-Wshift-negative-value option. This warning is enabled by gcc when
building with -Wextra for c99 or higher, but not for c89. Since
the kernel already relies on well-defined overflow behavior,
the warning is not helpful and can simply be disabled in
all locations that use -Wextra.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarJani Nikula <jani.nikula@intel.com>
Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com> # LLVM/Clang v13.0.0 (x86-64)
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 754e0b0e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment