From f677a4cc0ea445520e896ead7e74671b8f4d2f96 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Wed, 4 Mar 2009 17:21:50 +0100
Subject: [PATCH] Fixed bug in yyexplain_not_implements() where REPORT_NOTICE
 was escalated to REPORT_WARNING.

Rev: src/program.c:1.759
---
 src/program.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/program.c b/src/program.c
index 182a570b75..0c1bb30f13 100644
--- a/src/program.c
+++ b/src/program.c
@@ -2,7 +2,7 @@
 || This file is part of Pike. For copyright information see COPYRIGHT.
 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
 || for more information.
-|| $Id: program.c,v 1.758 2009/03/04 14:17:10 grubba Exp $
+|| $Id: program.c,v 1.759 2009/03/04 16:21:50 grubba Exp $
 */
 
 #include "global.h"
@@ -10792,7 +10792,8 @@ void yyexplain_not_implements(int severity_level,
 		      aid_file, aid_line, ID_FROM_INT(a, i)->type,
 		      0, "Type of identifier %S does not match.", bid->name);
       } else {
-	yytype_report(REPORT_WARNING,
+	yytype_report((severity_level < REPORT_WARNING)?
+		      severity_level : REPORT_WARNING,
 		      bid_file, bid_line, bid->type,
 		      aid_file, aid_line, ID_FROM_INT(a, i)->type,
 		      0, "Type of identifier %S is not strictly compatible.",
-- 
GitLab