![]() |
![]() |
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 */
MISRA C:2012 Rules applicable to message 0656:
| Rule-1.1 (Required) | The program shall contain no violations of the standard C syntax and constraints, and shall not exceed the implementation's translation limits |
![]() | ||
| QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0 © 2012 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index | Contents |