![]() |
![]() |
1305 | ![]() |
||||
![]() | |||||||
| C++ compatibility | |||||||
A global object is being declared with the const type qualifier and without either the static or extern storage-class specifier. In C this specifies external linkage; in C++ it specifies internal linkage. 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 |