diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2016-02-03 22:00:48 +0000 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-02-04 09:47:01 +0000 |
commit | 8d0455c910d004c4d64162c2182c9f8be6fd4396 (patch) | |
tree | 1a43e104ae87d7cdcd153afe044d1acea2e6ddc9 /tools/asn2wrs.py | |
parent | 81b457d0c461b06de836148733d31e2e8e40cdb3 (diff) |
Fix asn2wrs warnings [-Wredundant-decls]
Change-Id: Iced801f17c56618eaaf1bb7c85d68ecdebd633a1
Reviewed-on: https://code.wireshark.org/review/13705
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'tools/asn2wrs.py')
-rwxr-xr-x | tools/asn2wrs.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/asn2wrs.py b/tools/asn2wrs.py index cff519a5cc..995e751be3 100755 --- a/tools/asn2wrs.py +++ b/tools/asn2wrs.py @@ -1791,7 +1791,10 @@ class EthCtx: t = self.type[self.eth_dep_cycle[i][0]]['ethname'] if self.dep_cycle_eth_type[t][0] != i: i += 1; continue fx.write(''.join(['/* %s */\n' % ' -> '.join(self.eth_dep_cycle[i]) for i in self.dep_cycle_eth_type[t]])) - fx.write(self.eth_type_fn_h(t)) + if not self.eth_type[t]['export'] & EF_TYPE: + fx.write(self.eth_type_fn_h(t)) + else: + fx.write('/*' + self.eth_type_fn_h(t).strip() + '*/\n') fx.write('\n') i += 1 fx.write('\n') |