[previous] 0887 [next] [U] Use of 'defined' must match either 'defined(identifier)' or 'defined identifier'.
Explicitly undefined REFERENCE - ISO:C90-6.8.1 Conditional Inclusion - Semantics

This 'defined' operator has been misused.

For example:


/*PRQA S 553,2017 ++*/

#if defined(ABC)                   /* OK */
int a = 1;
#endif

#if defined                        /* Message 0887 */
int b = 1;
#endif

#if defined("filename")            /* Message 0887 and also 0888 and 0897 */
int c = 1;
#endif

#if defined 123                    /* Message 0887 and also 0897 */
int d = 1;
#endif

See also:

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents