From ee905088c2b773883a6da2be548aa3079a18d2c1 Mon Sep 17 00:00:00 2001 From: edoapra Date: Fri, 13 Oct 2023 16:43:56 -0700 Subject: [PATCH] filter out warnings when V=-1 --- src/config/makefile.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config/makefile.h b/src/config/makefile.h index 1e7c805b72..db46b9956f 100644 --- a/src/config/makefile.h +++ b/src/config/makefile.h @@ -2181,7 +2181,9 @@ ifneq ($(TARGET),LINUX) FOPTIONS += -ffast-math #-Wunused endif ifeq ($(V),-1) + ifeq ($(FLANG_LT_17),true) FOPTIONS += -w + endif COPTIONS += -w else ifneq ($(USE_FLANG),1) @@ -3989,7 +3991,7 @@ endif # V = 0 ACTUAL_FC := $(FC) -NWFC_-1 = @echo "Compiling $<..."; $(ACTUAL_FC) +NWFC_-1 = @echo "Compiling $<..."; $(ACTUAL_FC) 2> >(grep -v warning|grep -v '\^\^' |grep -v previous\ ref >&2) NWFC_0 = @echo "Compiling $<..."; $(ACTUAL_FC) NWFC_1 = $(ACTUAL_FC) NWFC = $(NWFC_$(V))