That is, ignore any warnings from clang(1). We have a different target
for that.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
$(_LINT_c_iwyu): %.lint-c.iwyu.touch: %.c
$(info LINT (iwyu) $@)
- $(IWYU) $(IWYUFLAGS) $(CPPFLAGS) $(CFLAGS) $< 2>&1 \
- | $(TAC) \
- | $(SED) '/correct/{N;d}' \
- | $(TAC) >&2
+ ! ($(IWYU) $(IWYUFLAGS) $(CPPFLAGS) $(CFLAGS) $< 2>&1 \
+ | $(SED) -n '/should add these lines:/,$$p' \
+ | $(TAC) \
+ | $(SED) '/correct/{N;d}' \
+ | $(TAC) \
+ ||:; \
+ ) \
+ | $(GREP) ^ >&2
touch $@