CBSP_Templates: Fix tons of compiler warnings

CBSP_Templates.ttcn:385.1-401.1: In function definition `ts_CBSP_REPLACE_CBS_COMPL':
  CBSP_Templates.ttcn:396.2-398.2: In if statement:
   CBSP_Templates.ttcn:397.3-50: In variable assignment:
    CBSP_Templates.ttcn:397.40-50: In actual parameter list of template `@CBSP_Templates.ts_CbspCellList':
     CBSP_Templates.ttcn:397.41-49: In parameter #1 for `list':
      CBSP_Templates.ttcn:397.41-49: warning: Inadequate restriction on the referenced template parameter `cell_list', this may cause a dynamic test case error at runtime
      CBSP_Templates.ttcn:387.8-68: note: Referenced template parameter is here

Change-Id: I54c21d17ab3235ec37d5f07867d8c6c83d699088
This commit is contained in:
Harald Welte 2020-08-21 12:22:31 +02:00
parent 38a833bf89
commit afd87efcd1
1 changed files with 10 additions and 10 deletions

View File

@ -354,7 +354,7 @@ return template (value) CBSP_PDU {
ts_NewSerNo(new_ser_nr)
};
if (not istemplatekind(cell_list, "omit")) {
ies[lengthof(ies)] := ts_CbspCellList(cell_list);
ies[lengthof(ies)] := ts_CbspCellList(valueof(cell_list));
}
ies[lengthof(ies)] := ts_CbspChannelInd(channel_ind);
return ts_CBSP(CBSP_MSGT_WRITE_REPLACE_COMPL, ies);
@ -394,7 +394,7 @@ return template (value) CBSP_PDU {
ts_CbspNumComplList(compl_list)
};
if (not istemplatekind(cell_list, "omit")) {
ies[lengthof(ies)] := ts_CbspCellList(cell_list);
ies[lengthof(ies)] := ts_CbspCellList(valueof(cell_list));
}
ies[lengthof(ies)] := ts_CbspChannelInd(channel_ind);
return ts_CBSP(CBSP_MSGT_WRITE_REPLACE_COMPL, ies);
@ -439,10 +439,10 @@ return template (value) CBSP_PDU {
ts_CbspFailList(fail_list)
};
if (not istemplatekind(compl_list, "omit")) {
ies[lengthof(ies)] := ts_CbspNumComplList(compl_list);
ies[lengthof(ies)] := ts_CbspNumComplList(valueof(compl_list));
}
if (not istemplatekind(cell_list, "omit")) {
ies[lengthof(ies)] := ts_CbspCellList(cell_list);
ies[lengthof(ies)] := ts_CbspCellList(valueof(cell_list));
}
ies[lengthof(ies)] := ts_CbspChannelInd(channel_ind);
return ts_CBSP(CBSP_MSGT_WRITE_REPLACE_FAIL, ies);
@ -493,10 +493,10 @@ return template (value) CBSP_PDU {
ts_CbspFailList(fail_list)
};
if (not istemplatekind(compl_list, "omit")) {
ies[lengthof(ies)] := ts_CbspNumComplList(compl_list);
ies[lengthof(ies)] := ts_CbspNumComplList(valueof(compl_list));
}
if (not istemplatekind(cell_list, "omit")) {
ies[lengthof(ies)] := ts_CbspCellList(cell_list);
ies[lengthof(ies)] := ts_CbspCellList(valueof(cell_list));
}
ies[lengthof(ies)] := ts_CbspChannelInd(channel_ind);
return ts_CBSP(CBSP_MSGT_WRITE_REPLACE_FAIL, ies);
@ -562,10 +562,10 @@ return template (value) CBSP_PDU {
ts_OldSerNo(old_ser_nr)
};
if (not istemplatekind(compl_list, "omit")) {
ies[lengthof(ies)] := ts_CbspNumComplList(compl_list);
ies[lengthof(ies)] := ts_CbspNumComplList(valueof(compl_list));
}
if (not istemplatekind(cell_list, "omit")) {
ies[lengthof(ies)] := ts_CbspCellList(cell_list);
ies[lengthof(ies)] := ts_CbspCellList(valueof(cell_list));
}
if (not istemplatekind(channel_ind, "omit")) {
ies[lengthof(ies)] := ts_CbspChannelInd(channel_ind);
@ -621,10 +621,10 @@ return template (value) CBSP_PDU {
ts_CbspFailList(fail_list)
};
if (not istemplatekind(compl_list, "omit")) {
ies[lengthof(ies)] := ts_CbspNumComplList(compl_list);
ies[lengthof(ies)] := ts_CbspNumComplList(valueof(compl_list));
}
if (not istemplatekind(cell_list, "omit")) {
ies[lengthof(ies)] := ts_CbspCellList(cell_list);
ies[lengthof(ies)] := ts_CbspCellList(valueof(cell_list));
}
if (not istemplatekind(channel_ind, "omit")) {
ies[lengthof(ies)] := ts_CbspChannelInd(channel_ind);