summaryrefslogtreecommitdiff
path: root/giscanner/introspectablepass.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-09-20 23:30:25 -0300
committerJohan Dahlin <johan@gnome.org>2010-09-20 23:33:22 -0300
commit7d478a50602f3783b67a6cf9b53eac1bbc1df7ba (patch)
tree568092255aa5b170878d195f0e6be7a91dd6fdc5 /giscanner/introspectablepass.py
parentbb3563b89f79d5c95946de392ede907161fb416a (diff)
downloadgobject-introspection-7d478a50602f3783b67a6cf9b53eac1bbc1df7ba.tar.gz
[IntrospectablePass] Suppress callback/vfunction warnings
Suppress a callback and virtual function warnings until there's a clear way to document them.
Diffstat (limited to 'giscanner/introspectablepass.py')
-rw-r--r--giscanner/introspectablepass.py5
1 files changed, 5 insertions, 0 deletions
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)