Skip to main content

Compiler Warning C0357

Message: POU '<POU name>' has been marked as obsolete: <message text>

Possible error cause: A POU is decorated with the attribute 'obsolete', but it is still used in the program.

Error correction: Remove the attribute from the POU or do not use it anymore.

Example 470. Example of the warning
{attribute 'obsolete':= 'datatype fb not valid!'}
FUNCTION_BLOCK FB_Test

PROGRAM PLC_PRG
VAR
      inst : FB_Test;
END_VAR

The declaration of the variable inst produces the following warning:

Message:

C0357: POU 'FB_Test' has been marked as obsolete: datatype fb not valid!