Opened 6 years ago
Closed 6 years ago
#72 closed defect (fixed)
Superfluous warning for uninitialised variables
Reported by: | phdmakk | Owned by: | phdmakk |
---|---|---|---|
Priority: | major | Milestone: | v2.0.0 Series |
Component: | T3Q | Version: | 2.0 |
Keywords: | Cc: |
Description
The tool on b24 is raising a warning as follows:
Validation output of ..\ttcn\Common\NAS\SMS_Templates.ttcn
..\ttcn\Common\NAS\SMS_Templates.ttcn: 505: WARNING: Code Style: Local definition for "v_Received_CP_PDU" in definition of "f_SMS_CP_PDU_DecodeAndMatch" is not initialised! (6.10, checkNoUninitialisedVariables)
But v_Received_CP_PDU is an out variable, as it is used on
var integer v_DecodeResult := decvalue(p_EncodedSMS_Message, *v_Received_CP_PDU*);
Therefore it should not be raised as a warning. I think on b24 the issues with inout variables are solved now but the ones with only out variables remain.
Change History (2)
comment:1 Changed 6 years ago by phdmakk
- Owner set to phdmakk
- Status changed from new to accepted
comment:2 Changed 6 years ago by phdmakk
- Resolution set to fixed
- Status changed from accepted to closed
Indeed, there was an issue with the handling of variables in different contexts so that in certain cases the state of out variables would not be updated after the decvalue call. The issue has been fixed.