![]() |
![]() |
1329 | ![]() |
||||
![]() | |||||||
| C++ compatibility | |||||||
A global object is being defined with the const type qualifier and without an initializer. In C this object will be automatically initialized to 0. In C++ an explicit initializer is always required. For example:
/*PRQA S 2200,3207,3211,3408,3602,3603 ++*/
const int a; /* Message 1305 + 1329 */
const int b = 1; /* Message 1305 */
static const int c; /* Message 1329 */
extern const int d = 1; /* Message */
No MISRA C:2012 Rules applicable to message 1329
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 |