![]() |
![]() |
0888 | ![]() |
||||
![]() | |||||||
| 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 ( ) /* Message 0888 and also 0887 and 0897 */
int c = 1;
#endif
#if defined (-X) /* Message 0888 and also 0887 and 0897 */
int d = 1;
#endif
#if defined("filename") /* Message 0888 and also 0887 and 0897 */
int e = 1;
#endif
#if defined 123 /* Message 0887 and also 0897 */
int f = 1;
#endif
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |