From 8b9e69f29187c47efd3e46bd6cab33c60b63d834 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 11 Dec 2018 14:02:49 +0100 Subject: Remove -Wall for autogenerated code There seems to be no option for ttcn3_makefilegen to disable generated code warnings so the only way to clear output from useless warnings about indentation and such is to manually strip -Wall using sed. Change-Id: I7ef141f7f3370a1bf909845ce8a4eb650b33fa81 --- regen-makefile.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/regen-makefile.sh b/regen-makefile.sh index a9f85626..5a4dd4c1 100755 --- a/regen-makefile.sh +++ b/regen-makefile.sh @@ -33,6 +33,9 @@ sed -i -e 's/LDFLAGS = /LDFLAGS = -L \/usr\/lib\/titan /' Makefile # see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=879816 for details sed -i -e 's/CPPFLAGS = -D$(PLATFORM) -I$(TTCN3_DIR)\/include/CPPFLAGS = -D$(PLATFORM) -DMAKEDEPEND_RUN -DUSE_SCTP -I$(TTCN3_DIR)\/include -I\/usr\/include\/titan/' Makefile +#remove -Wall from CXXFLAGS: we're not interested in generic warnings for autogenerated code cluttering the logs +sed -i -e 's/-Wall//' Makefile + if [ "x$CPPFLAGS_TTCN3" != "x" ]; then sed -i -e 's/CPPFLAGS_TTCN3 =/CPPFLAGS_TTCN3 = '"$CPPFLAGS_TTCN3"'/' Makefile fi -- cgit v1.2.3