summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-12-11 14:02:49 +0100
committerMax <msuraev@sysmocom.de>2018-12-18 10:25:47 +0000
commit8b9e69f29187c47efd3e46bd6cab33c60b63d834 (patch)
tree39d122ed7051196c6f8815e486fdaf7634401fcb
parent7dbe9909f42679fa458af2ed4110cafe8bd3004e (diff)
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
-rwxr-xr-xregen-makefile.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/regen-makefile.sh b/regen-makefile.sh
index a9f8562..5a4dd4c 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