![]() |
![]() |
1328 | ![]() |
||||
![]() | |||||||
| Functions | |||||||
This function declaration contains the declaration of a struct, union or enum tag. This would not be permitted in C++. It is permitted in C but is not recommended practice. For example:
/*PRQA S 553,750,2017,2211,2213,2216,3132,3205,3206,3210,3408,3447,3602,3625 ++ */
extern void f1(enum ET1 { A, B, C } x); /* Message 1328 */
extern enum ET2 { A, B, C } f2(void); /* Message 1328 */
extern struct ST3 {int m; int n;} f3(void); /* Message 1328 */
extern void f4(union UN4 {int x; char buf[4];} u) /* Message 1328 */
{
}
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |