Skip to content

Commit 1940ffa

Browse files
author
roman_yakovenko
committed
remove warning
1 parent ca50db3 commit 1940ffa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pygccxml/parser/scanner.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,10 @@ def __read_array_type( self, attrs ):
339339
size = self.__guess_int_value( attrs.get(XML_AN_MAX, '' ) )
340340
if size is None:
341341
size = array_t.SIZE_UNKNOWN
342-
msg = 'unable to find out array size from expression "%s"' % attrs[ XML_AN_MAX ]
343-
warnings.warn( msg )
342+
#The following warning is pretty useless, as it cant say what the
343+
#problematic declaration is.
344+
#msg = 'unable to find out array size from expression "%s"' % attrs[ XML_AN_MAX ]
345+
#warnings.warn( msg )
344346
return array_t( type_, size + 1 )
345347

346348
def __read_cv_qualified_type( self, attrs ):

0 commit comments

Comments
 (0)