![]() |
![]() |
0887 | ![]() |
||||
![]() | |||||||
| 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
MISRA C:2012 Rules applicable to message 0887:
| Rule-1.3 (Required) | There shall be no occurrence of undefined or critical unspecified behaviour |
See also:
![]() | ||
| QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0 © 2012 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index | Contents |