![]() |
![]() |
3617 | ![]() |
||||
![]() | |||||||
| Arrays, structures, unions and bit-fields | |||||||
The value of a struct or union is being assigned. Assignment of structs and unions was not always supported in old (K&R) compilers. For example:
/*PRQA S 2017,2213,2216,3408,3447 ++*/
struct ST {int a; int b;};
extern struct ST stf(struct ST stp);
extern struct ST stg;
extern struct ST foo(void)
{ /* Message 3624 */
struct ST sta;
sta = stg; /* Message 3617 */
stg = stf(sta); /* Message 3617 and 3623 */
return sta;
}
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |