Compiler Error C2182

'identifier' : illegal use of type 'void'

The given variable was declared with the keyword void, which can be used only in function declarations.