Change in osmo-ttcn3-hacks[master]: L3_Templates: Fix compiler warning about missing qualifier

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Fri Aug 21 10:39:56 UTC 2020


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19756 )


Change subject: L3_Templates: Fix compiler warning about missing qualifier
......................................................................

L3_Templates: Fix compiler warning about missing qualifier

L3_Templates.ttcn: In TTCN-3 module `L3_Templates':
 L3_Templates.ttcn:120.1-125.1: In template definition `tr_MI_IMSI':
  L3_Templates.ttcn:122.25-124.2: In template for record field `oddEvenInd_identity':
   L3_Templates.ttcn:123.11-28: In template for union field `imsi':
    L3_Templates.ttcn:123.23-28: In actual parameter list of function `@L3_Templates.f_tr_MI_IMSI':
     L3_Templates.ttcn:123.24-27: In parameter #1 for `digits':
      L3_Templates.ttcn:123.24-27: warning: Inadequate restriction on the referenced template parameter `imsi', this may cause a dynamic test case error at runtime
      L3_Templates.ttcn:120.37-59: note: Referenced template parameter is here

Change-Id: Ia6979dff7d3c58f8609ebe55de2550446c3f1781
---
M library/L3_Templates.ttcn
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/56/19756/1

diff --git a/library/L3_Templates.ttcn b/library/L3_Templates.ttcn
index f072f78..8c0f494 100644
--- a/library/L3_Templates.ttcn
+++ b/library/L3_Templates.ttcn
@@ -117,7 +117,7 @@
 		return f_enc_IMSI_L3(valueof(digits))
 	}
 }
-template MobileIdentityV tr_MI_IMSI(template hexstring imsi) := {
+template MobileIdentityV tr_MI_IMSI(template (present) hexstring imsi) := {
 	typeOfIdentity := '001'B,
 	oddEvenInd_identity := {
 		imsi := f_tr_MI_IMSI(imsi)

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19756
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ia6979dff7d3c58f8609ebe55de2550446c3f1781
Gerrit-Change-Number: 19756
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200821/06ddcbf6/attachment.htm>


More information about the gerrit-log mailing list