From c85259415fe99478d7a10af7402a2e68d3c43e0f Mon Sep 17 00:00:00 2001 From: Botond Baranyi <botond.baranyi@ericsson.com> Date: Thu, 16 Mar 2017 13:49:29 +0100 Subject: [PATCH] Changed 'UNIVERSAL tagclass' warning to note (bug 513749) Change-Id: Iae0fe620c690f1ffa09b2a1eb6a644100d03db5e Signed-off-by: Botond Baranyi <botond.baranyi@ericsson.com> --- compiler2/asn1/asn1p.y | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/compiler2/asn1/asn1p.y b/compiler2/asn1/asn1p.y index ee477cec2..6c682a755 100644 --- a/compiler2/asn1/asn1p.y +++ b/compiler2/asn1/asn1p.y @@ -94,6 +94,12 @@ void yywarning(const char *s) loc.warning("%s", s); } +void yynote(const char *s) +{ + Location loc(asn1_infile, plineno); + loc.note("%s", s); +} + #endif /* YYBISON */ %} @@ -1269,7 +1275,7 @@ Class: { $$=Tag::TAG_UNIVERSAL; if(!asn1_yy_parse_internal) - yywarning("Using of UNIVERSAL tagclass is not recommended."); + yynote("Usage of UNIVERSAL tagclass is not recommended."); } | KW_APPLICATION {$$=Tag::TAG_APPLICATION;} | KW_PRIVATE {$$=Tag::TAG_PRIVATE;} -- GitLab