Update warn.py with the latest warnings that popped up in the build.

This commit is contained in:
Marco Nelissen
2009-07-31 08:30:34 -07:00
parent 1de66889ec
commit 5236fbde30

View File

@@ -312,7 +312,7 @@ warnpatterns = [
'patterns':[r".*: warning: converting negative value '.+' to '.+'"] }, 'patterns':[r".*: warning: converting negative value '.+' to '.+'"] },
{ 'category':'C/C++', 'severity':severity.MEDIUM, 'members':[], 'option':'', { 'category':'C/C++', 'severity':severity.MEDIUM, 'members':[], 'option':'',
'description':'Passing NULL as non-pointer argument', 'description':'Passing NULL as non-pointer argument',
'patterns':[r".*: warning: passing NULL to non-pointer argument 3 of '.+'"] }, 'patterns':[r".*: warning: passing NULL to non-pointer argument [0-9]+ of '.+'"] },
{ 'category':'C/C++', 'severity':severity.MEDIUM, 'members':[], 'option':'-Wctor-dtor-privacy', { 'category':'C/C++', 'severity':severity.MEDIUM, 'members':[], 'option':'-Wctor-dtor-privacy',
'description':'Class seems unusable because of private ctor/dtor' , 'description':'Class seems unusable because of private ctor/dtor' ,
'patterns':[r".*: warning: all member functions in class '.+' are private"] }, 'patterns':[r".*: warning: all member functions in class '.+' are private"] },
@@ -333,6 +333,12 @@ warnpatterns = [
{ 'category':'cont.', 'severity':severity.SKIP, 'members':[], 'option':'', { 'category':'cont.', 'severity':severity.SKIP, 'members':[], 'option':'',
'description':'', 'description':'',
'patterns':[r".*: warning: in call to '.+'"] }, 'patterns':[r".*: warning: in call to '.+'"] },
{ 'category':'C/C++', 'severity':severity.HIGH, 'members':[], 'option':'-Wextra',
'description':'Base should be explicitly initialized in copy constructor',
'patterns':[r".*: warning: base class '.+' should be explicitly initialized in the copy constructor"] },
{ 'category':'C/C++', 'severity':severity.MEDIUM, 'members':[], 'option':'',
'description':'Converting from <type> to <other type>',
'patterns':[r".*: warning: converting to '.+' from '.+'"] },
# these next ones are to deal with formatting problems resulting from the log being mixed up by 'make -j' # these next ones are to deal with formatting problems resulting from the log being mixed up by 'make -j'
{ 'category':'C/C++', 'severity':severity.SKIP, 'members':[], 'option':'', { 'category':'C/C++', 'severity':severity.SKIP, 'members':[], 'option':'',