Is it possible to disable some Static Analysis errors/warning when my POU is implemented in CFC? I know in ST code I can use pragmas {analysis '-...'}, but unsure if anything similar is possible on CFC code.
In some cases Static Analysis gives me warnings and I cannot disable them with pragmas. For example:
I generate a persistent variables list like below:
{attribute'qualified_only'}VAR_GLOBALPERSISTENTRETAINÂ Â {attribute'analysis':='-12'}Â Â g_xCheck:Â Â Â Â BOOL:=FALSE;Â Â {attribute'analysis':='-12'}Â Â g_sText:Â Â Â Â STRING:='abc';END_VAR
Then I place these variables somewhere in a Visualizaiton. The Static Analysis still reports - despite of the usage of pragma . I would like to disable it. What am I missing?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible to disable some Static Analysis errors/warning when my POU is implemented in CFC? I know in ST code I can use pragmas {analysis '-...'}, but unsure if anything similar is possible on CFC code.
In some cases Static Analysis gives me warnings and I cannot disable them with pragmas. For example:
I generate a persistent variables list like below:
Then I place these variables somewhere in a Visualizaiton. The Static Analysis still reports - despite of the usage of pragma . I would like to disable it. What am I missing?