WARN4-Variables that are referenced, but possibly never set (ref/set by unknown subprograms)

Top  Previous  Next

 

Variables that are referenced, but possibly never set (ref/set by unknown subprograms) (WARN4)

 

This section lists all variables that are declared and referenced but never set. They are referenced in unknown fashion, and the parser is unable to determine whether they are set or just referenced in these locations.

 

Restrictions:

Variables marked with the absolute directive are not examined. These identifiers shadow another variable in memory, and are changed whenever the other variable changes.

 

Recommendation:

Examine why these variables are referenced, but never set. False warnings may be generated in some cases for null-terminated strings, where the actual pointer (PChar) is not set, but when the contents of the buffer pointed to is indeed changed.

 

 

See also:

 

Alerts