![]() |
![]() |
0543 | ![]() |
||||
![]() | |||||||
| Explicitly undefined | REFERENCE - ISO:C90-6.2.2.2 void | ||||||
An attempt has been made to used the value of an expression which is of type void. This is meaningless and the result will be undefined. In practice, any attempt to use the value of a void expression is likely to result in other messages. For example, in the code below, message 0481 (a constraint error) is also generated.
/*PRQA S 2017,3199,3203,3408,3447 ++*/
extern void func(void);
extern void foo(void)
{
int r;
r = (int)func(); /* Message 0543 - and also 0481 */
}
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |