(C3029) Subroutines that are used incorrectly
User functions are used inconsistently in different expressions as in a different return type, parameter type, or number of parameters.Note: When working with MicroC components, this test also reports situations where a subroutine is called with an actual ‘out’ parameter that is bound to an external symbol with get/set APIs.A subroutineSUB_1
is defined as a function with two input parameters that returns an integer. An activityACT_1
contains the following mini-spec, whereY
is defined as an integer:A second activity on the same chart contains the following mini-spec, whereZ
is defined as a condition:The error is generated on theSUB_1
function because the return type is used as an integer in the first activity and as a condition in the second activity.