SA0169: Ignored outputs

Function

Determines the outputs of methods and functions that are not specified when calling the method or function.

Reason

Ignored outputs can be an indication of unhandled errors or nonsensical function calls, as the results are not used.

Importance

Medium

Sample:

Function F_Sample:

FUNCTION F_Sample : BOOL
VAR_INPUT
    bIn     : BOOL;
END_VAR
VAR_OUTPUT
    bOut    : BOOL;
END_VAR

MAIN program:

PROGRAM MAIN
VAR
    bReturn : BOOL;
    bFunOut : BOOL;
END_VAR
bReturn := F_Sample(bIn := TRUE , bOut => bFunOut);
bReturn := F_Sample(bIn := TRUE);                          // => SA0169