mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 07:35:36 -05:00
Fix:
gcc: error: unrecognized command-line option ‘-Wflex-array-member-not-at-end’
by making the compiler option dependent on its support.
Fixes: 1838731f10 ("selftest: af_unix: Add -Wall and -Wflex-array-member-not-at-end to CFLAGS.")
Cc: Kuniyuki Iwashima <kuniyu@google.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Link: https://patch.msgid.link/20251205171010.515236-7-linux@roeck-us.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
20 lines
388 B
Makefile
20 lines
388 B
Makefile
top_srcdir := ../../../../..
|
|
include $(top_srcdir)/scripts/Makefile.compiler
|
|
|
|
cc-option = $(call __cc-option, $(CC),,$(1),$(2))
|
|
|
|
CFLAGS += $(KHDR_INCLUDES) -Wall $(call cc-option,-Wflex-array-member-not-at-end)
|
|
|
|
TEST_GEN_PROGS := \
|
|
diag_uid \
|
|
msg_oob \
|
|
scm_inq \
|
|
scm_pidfd \
|
|
scm_rights \
|
|
so_peek_off \
|
|
unix_connect \
|
|
unix_connreset \
|
|
# end of TEST_GEN_PROGS
|
|
|
|
include ../../lib.mk
|