![]() |
![]() |
0685 | ![]() |
||||
![]() | |||||||
| Constraint violations | REFERENCE - ISO:C90-6.5.7 Initialization - Constraints, ISO:C90-6.4 Constant Expressions - Constraints. | ||||||
This is a constraint error The initializer for any object with static storage duration must be a constant expression. For example:
/*PRQA S 2017,3199,3205,3211,3223,3227,3408,3447 ++*/
extern int ga;
int gb = ga; /* Message 0685 */
void foo(int n)
{
static int x = n; /* Message 0685 */
}
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |