![]() |
![]() |
0656 | ![]() |
||||
![]() | |||||||
| Constraint violations | REFERENCE - ISO:C90-6.5.4.3 Function Declarators - Constraints, ISO:C90-6.7.1 Function Definitions - Constraints | ||||||
This is a constraint error The return type of this function is invalid. It cannot be an array type or a function type and a function cannot be defined with a return type which is an incomplete struct or union type. For example:
/*PRQA S 553,1307,2213,2216,3132,3210,3408,3447,3448 ++*/
typedef int TI;
typedef struct {int a; int b;} TS;
typedef int TF(void);
typedef int TA[10];
extern TI f1(void);
extern TS f2(void);
extern TF f3(void); /* Message 0656 */
extern TA f4(void); /* Message 0656 */
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |