This rule is Obsolete | |
Synopsis: | Void expressions have no value and must not be used in other expressions. |
Language: | C |
Severity Level: | 2 |
Category: | EXPRESSIONS |
Description: |
The ANSI standard does not allow expressions returning 'void' type (which have no
value) to be used in another expression.
Example: is illegal because the function 'fn' does not return a value.extern void fn(); ... int x = fn(); ... |