Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Reduce warning noise
Browse files Browse the repository at this point in the history
	* giscanner/glibtransformer.py: Reduce warning noise

svn path=/trunk/; revision=539
  • Loading branch information
Colin Walters committed Aug 30, 2008
1 parent 4fda156 commit e93e471
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions giscanner/glibtransformer.py
Expand Up @@ -217,8 +217,6 @@ def _parse_enum(self, enum):

def _parse_function(self, func):
if func.symbol in SYMBOL_BLACKLIST:
print "WARNING: Skipping blacklisted function: %r" \
% (func.symbol, )
return
if self._parse_get_type_function(func):
return
Expand All @@ -229,6 +227,9 @@ def _parse_get_type_function(self, func):
symbol = func.symbol
if not symbol.endswith('_get_type'):
return False
if self._namespace_name == 'GLib':
# No GObjects in GLib
return False
# GType *_get_type(void)
# This is a bit fishy, why do we need all these aliases?
if func.retval.type.name not in ['Type',
Expand Down Expand Up @@ -285,6 +286,9 @@ def _parse_method_common(self, func, is_method):
# already
if func.symbol.endswith('_get_type'):
return None
if self._namespace_name == 'GLib':
# No GObjects in GLib
return None

if not is_method:
target_arg = func.retval
Expand Down

0 comments on commit e93e471

Please sign in to comment.