Synopsis: | void expressions shall not be used in expressions. |
Language: | C |
Severity Level: | 8 |
Category: | Conversions |
Description: |
Justification A void expression is evaluated for its side effects. "void" expressions have no value and may not be used in expressions. Example void increment_counter(void); i = increment_counter(); /* WRONG */ Note Most compilers will check this in case a prototype is available. |