![]() |
![]() |
0545 | ![]() |
||||
![]() | |||||||
| Explicitly undefined | REFERENCE - ISO:C90-6.2.2.1 lvalues | ||||||
An attempt has been made to use the value of a struct of incomplete type. This is not allowed and the result will be undefined. It is sometimes useful to define a pointer to an incomplete struct type. But any attempt to dereference such a pointer will generate message 0545. For example:
/*PRQA S 506,2017,3408,3447,3617 ++*/
extern struct ST *pst1; /* Message 3313 */
extern struct ST *pst2;
extern void foo(void)
{
*pst1 = *pst2; /* Message 0545 */
pst1 = pst2; /* OK */
}
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |