From 9fb1c80f46d08034a575fb8b3b80e5313bcc2430 Mon Sep 17 00:00:00 2001
From: Botond Baranyi <botond.baranyi@ericsson.com>
Date: Mon, 18 Mar 2019 15:07:00 +0100
Subject: [PATCH] Added 'not supported' warning for EXTENSIBILITY IMPLIED
 modifier (bug 544608)

Change-Id: Id4768cb24bfe4c463cf79a9d129121235da3794c
Signed-off-by: Botond Baranyi <botond.baranyi@ericsson.com>
---
 compiler2/asn1/asn1p.y | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/compiler2/asn1/asn1p.y b/compiler2/asn1/asn1p.y
index 584b8f8e6..1721d642e 100644
--- a/compiler2/asn1/asn1p.y
+++ b/compiler2/asn1/asn1p.y
@@ -827,6 +827,9 @@ ModuleDefinition:
     $$=new Asn::Module($1, $4, $5, $8.exp, $8.imp, $8.asss);
     $$->set_location(asn1_infile, @1.first_line);
     delete $2;
+    if ($5) {
+      $$->warning("EXTENSIBILITY IMPLIED is not supported.");
+    }
   }
 ;
 
-- 
GitLab