Warning emitted for unused function created by compiler - by Avery Lee

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 324427 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 1/26/2008 4:22:45 PM
Access Restriction Public


At warning level 4, the compiler emits warning C4505 for unused local functions. Problem is, it can also emit this warnings for functions created by the compiler itself. This happens when a pointer to member is created for a virtual method, and the member pointer is not actually used. The compiler automatically generates a thunk for use with the member pointer and then complains about it.
Sign in to post a comment.
Posted by Microsoft on 4/2/2008 at 4:39 PM
Hi: unfortunately this bug does not meet the triage guidelines for the next release of Visual C++. This guideline are listed here:


But we will keep the bug in our database and we will look at it again during the planning phase of a future release of Visual C++.

Jonathan Caves
Visual C++ Compiler Team
Posted by Microsoft on 1/27/2008 at 10:44 PM
Thanks for your feedback. We are escalating this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.

Thank you,
Visual Studio Product Team