linux/tools/perf/scripts/perl/Perf-Trace-Util/Build

perf-util-y += Context.o

CFLAGS_Context.o += $(PERL_EMBED_CCOPTS) -Wno-redundant-decls -Wno-strict-prototypes -Wno-bad-function-cast -Wno-declaration-after-statement -Wno-switch-enum
CFLAGS_Context.o += -Wno-unused-parameter -Wno-nested-externs -Wno-undef
CFLAGS_Context.o += -Wno-switch-default -Wno-shadow

ifeq ($(CC_NO_CLANG), 1)
  CFLAGS_Context.o += -Wno-unused-command-line-argument
endif