From dbc71270df0b92fbb5fc44cccd23119e842adcc4 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 5 Feb 2021 12:37:42 +0100 Subject: pcu: Fix inadequate restriction on the referenced template parameter Fixes: warning: Inadequate restriction on the referenced template parameter `tfi', this may cause a dynamic test case error at runtime Same for other parameters. Change-Id: If2cadbc7087ac0f99537b9916ef0c23363c9242c --- library/RLCMAC_Templates.ttcn | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/library/RLCMAC_Templates.ttcn b/library/RLCMAC_Templates.ttcn index 981061c9..6b5fb9ff 100644 --- a/library/RLCMAC_Templates.ttcn +++ b/library/RLCMAC_Templates.ttcn @@ -422,9 +422,12 @@ module RLCMAC_Templates { } /* Template for uplink Data block */ - template RlcmacUlBlock t_RLCMAC_UL_DATA(template CodingScheme cs, template uint5_t tfi, - template uint4_t cv, template uint7_t bsn, - template LlcBlocks blocks := {}, template boolean stall := false) := { + template (value) RlcmacUlBlock t_RLCMAC_UL_DATA(template (value) CodingScheme cs, + template (value) uint5_t tfi, + template (value) uint4_t cv, + template (value) uint7_t bsn, + template (value) LlcBlocks blocks := {}, + template (value) boolean stall := false) := { data := { cs := cs, mac_hdr := { @@ -444,10 +447,13 @@ module RLCMAC_Templates { blocks := blocks } } - template RlcmacUlBlock t_RLCMAC_UL_DATA_TLLI(template CodingScheme cs, template uint5_t tfi, - template uint4_t cv, template uint7_t bsn, - template LlcBlocks blocks := {}, template boolean stall := false, - template GprsTlli tlli) := { + template (value) RlcmacUlBlock t_RLCMAC_UL_DATA_TLLI(template (value) CodingScheme cs, + template (value) uint5_t tfi, + template (value) uint4_t cv, + template (value) uint7_t bsn, + template (value) LlcBlocks blocks := {}, + template (value) boolean stall := false, + template (value) GprsTlli tlli) := { data := { cs := cs, mac_hdr := { @@ -469,9 +475,12 @@ module RLCMAC_Templates { } /* Template for uplink Data block */ - template RlcmacUlBlock t_RLCMAC_UL_EGPRS_DATA(CodingScheme mcs, - template uint5_t tfi, template uint4_t cv, - template uint11_t bsn1, template uint8_t bsn2_offset := 0, template EgprsLlcBlocks blocks := {}) := { + template (value) RlcmacUlBlock t_RLCMAC_UL_EGPRS_DATA(CodingScheme mcs, + template (value) uint5_t tfi, + template (value) uint4_t cv, + template (value) uint11_t bsn1, + template (value) uint8_t bsn2_offset := 0, + template (value) EgprsLlcBlocks blocks := {}) := { data_egprs := { mcs := mcs, mac_hdr := { -- cgit v1.2.3