This documentation is archived and is not being maintained.

Compiler Warning (level 1) C4930

'prototype': prototyped function not called (was a variable definition intended?)

The compiler detected an unused function prototype. If the prototype was intended as a variable declaration, remove the open/close parentheses.

The following sample generates C4930:

// C4930.cpp
// compile with: /W1
class Lock {
   int i;

void f() {
   Lock theLock();   // C4930
   // try the following line instead
   // Lock theLock;

int main() {