Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

gcc-9: silence 'address-of-packed-member' warning

We already did this for clang, but now gcc has that warning too. Yes,
yes, the address may be unaligned. And that's kind of the point.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

+1 -1
+1 -1
Makefile
··· 678 678 KBUILD_CFLAGS += $(call cc-disable-warning, format-truncation) 679 679 KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow) 680 680 KBUILD_CFLAGS += $(call cc-disable-warning, int-in-bool-context) 681 + KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member) 681 682 682 683 ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE 683 684 KBUILD_CFLAGS += -Os ··· 720 719 KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,) 721 720 KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier) 722 721 KBUILD_CFLAGS += $(call cc-disable-warning, gnu) 723 - KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member) 724 722 # Quiet clang warning: comparison of unsigned expression < 0 is always false 725 723 KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare) 726 724 # CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the