diff --git a/tools/warn.py b/tools/warn.py index f18a54d488..d8dbd1c04a 100755 --- a/tools/warn.py +++ b/tools/warn.py @@ -325,6 +325,9 @@ warnpatterns = [ { 'category':'C/C++', 'severity':severity.MEDIUM, 'option':'-Wunknown-pragmas', 'description':'Ignoring pragma', 'patterns':[r".*: warning: ignoring #pragma .+"] }, + { 'category':'C/C++', 'severity':severity.MEDIUM, 'option':'-W#pragma-messages', + 'description':'Pragma warning messages', + 'patterns':[r".*: warning: .+W#pragma-messages"] }, { 'category':'C/C++', 'severity':severity.MEDIUM, 'option':'-Wclobbered', 'description':'Variable might be clobbered by longjmp or vfork', 'patterns':[r".*: warning: variable '.+' might be clobbered by 'longjmp' or 'vfork'"] }, @@ -1427,6 +1430,9 @@ warnpatterns = [ { 'category':'C/C++', 'severity':severity.MEDIUM, 'description':'Closing a previously closed file', 'patterns':[r".*: warning: Closing a previously closed file"] }, + { 'category':'C/C++', 'severity':severity.MEDIUM, 'option':'-Wunnamed-type-template-args', + 'description':'Unnamed template type argument', + 'patterns':[r".*: warning: template argument.+Wunnamed-type-template-args"] }, { 'category':'C/C++', 'severity':severity.HARMLESS, 'description':'Discarded qualifier from pointer target type',