From 7d478a50602f3783b67a6cf9b53eac1bbc1df7ba Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Mon, 20 Sep 2010 23:30:25 -0300 Subject: [IntrospectablePass] Suppress callback/vfunction warnings Suppress a callback and virtual function warnings until there's a clear way to document them. --- giscanner/introspectablepass.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/giscanner/introspectablepass.py b/giscanner/introspectablepass.py index cc3a59d3..7de9b929 100644 --- a/giscanner/introspectablepass.py +++ b/giscanner/introspectablepass.py @@ -45,6 +45,11 @@ class IntrospectablePass(object): context=node) def _parameter_warning(self, parent, param, text, position=None): + # Suppress VFunctions and Callbacks warnings for now + # they cause more problems then they are worth + if isinstance(parent, (ast.VFunction, ast.Callback)): + return + if hasattr(parent, 'symbol'): prefix = '%s: ' % (parent.symbol, ) block = self._blocks.get(parent.symbol) -- cgit v1.2.1