본문 바로가기

Programming

C4100

336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
Compiler Warning (level 4) C4100

Error Message

'identifier' : unreferenced formal parameter

The formal parameter is not referenced in the body of the function. The unreferenced parameter is ignored.

C4100 can also be issued when code calls a destructor on a otherwise unreferenced parameter of primitive type. This is a limitation of the Visual C++ compiler.

The following sample generates C4100:

// C4100.cpp
// compile with: /W4
void func(int i) {   // C4100, delete the unreferenced parameter to
                     //resolve the warning
   // i;   // or, add a reference like this
}

int main()
{
   func(1);
}

'Programming' 카테고리의 다른 글

변환 : CString -> LPTSTR  (0) 2010.01.26
C4995  (0) 2009.10.01
C4706  (1) 2009.09.30