Commit 06f7cae9 authored by Guenter Roeck's avatar Guenter Roeck Committed by Jakub Kicinski
Browse files

selftest: af_unix: Support compilers without flex-array-member-not-at-end support



Fix:

gcc: error: unrecognized command-line option ‘-Wflex-array-member-not-at-end’

by making the compiler option dependent on its support.

Fixes: 1838731f ("selftest: af_unix: Add -Wall and -Wflex-array-member-not-at-end to CFLAGS.")
Cc: Kuniyuki Iwashima <kuniyu@google.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://patch.msgid.link/20251205171010.515236-7-linux@roeck-us.net


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 9580f6d4
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
CFLAGS += $(KHDR_INCLUDES) -Wall -Wflex-array-member-not-at-end
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 \