Attribute 'suppress_wrn_C0410'

The attribute 'suppress_wrn_C0410' must be used instead of the pragma 'warning disable' for the compiler warning with the ID C0410.

Syntax: {attribute 'suppress_wrn_C0410'}

Sample:

Compiler warning for a property:

C0410: COMPATIBILITY WARNING: A write access to a Property of type REFERENCE calls the SET-Accessor for versions < 3.1.4022.0 and writes the reference, but calls the GET-Accessor for versions >= 3.1.4022.0 and writes the value! Use the operator REF= if you want to assign the reference.

Applying the attribute to a property:

{attribute 'suppress_wrn_C0410'}
PROPERTY refSample : REFERENCE TO BOOL

On account of the attribute the warning C0410 will not be generated for the property refSample.

Attribute 'suppress_wrn_C0410' 1:

From TwinCAT 3.1 Build 4026, the compiler warning with ID C5410 replaces the compiler warning C0410. C5410 is disabled by default in the PLC project properties for the entire project. For individual properties, you can disable the warning with the pragma 'warning disable' as well as with the attribute 'suppress_wrn_C0410'.