controlling expression has type 'void'
The controlling expression in an if, while, for, or do statement was either a function with void return type or an expression cast to void.