![]() |
![]() |
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 */
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |