Change in osmo-ttcn3-hacks[master]: Remove -Wall for autogenerated code

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Max gerrit-no-reply at lists.osmocom.org
Tue Dec 11 13:05:05 UTC 2018


Max has uploaded this change for review. ( https://gerrit.osmocom.org/12241


Change subject: Remove -Wall for autogenerated code
......................................................................

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
---
M regen-makefile.sh
1 file changed, 3 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/41/12241/1

diff --git a/regen-makefile.sh b/regen-makefile.sh
index b8be4ea..eb9ecdc 100755
--- a/regen-makefile.sh
+++ b/regen-makefile.sh
@@ -31,6 +31,9 @@
 # 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

-- 
To view, visit https://gerrit.osmocom.org/12241
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7ef141f7f3370a1bf909845ce8a4eb650b33fa81
Gerrit-Change-Number: 12241
Gerrit-PatchSet: 1
Gerrit-Owner: Max <msuraev at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181211/03e2bc05/attachment.htm>


More information about the gerrit-log mailing list