![]() |
![]() |
0588 | ![]() |
||||
![]() | |||||||
| Constraint violations | REFERENCE - ISO:C90-6.5.2.1 Structure and Union Specifiers - Constraints | ||||||
This is a constraint error The expression used to specify the width of this bit-field is not an integral constant expression. For example:
/*PRQA S 553,1269,3621 ++*/
#define MAX 3.2f
#define X_WIDTH (int)MAX
#define Y_WIDTH (int)(1.9f * MAX)
struct bits
{
unsigned int bx:X_WIDTH; /* OK */
unsigned int by:Y_WIDTH; /* Message 0588 */
};
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |