title: Google Mock: Mocked overloaded functions create warning C4373
body: <p>I'm mocking a C++ class which has 2 overloaded functions using <a href="http://code.google.com/p/googlemock/" rel="noreferrer">Google Mock</a> and VS2010:</p>
  
  <pre><code>#include "stdafx.h"
  #include "gmock/gmock.h"
  
  #include "A.h"
  
  class MockA : public A
  {
  public:
      // ...
      MOCK_METHOD3(myFunc, void(const int id, const int errorCode, const CString errorMsg));
      MOCK_METHOD1(myFunc, void(const CString errorMsg));
      // ...
  };
  </code></pre>
  
  <p>Each time I compile I get the following warning twice:</p>
  
  <pre><code>1&gt;c:\dev\my_project\tests\mocka.h(83): warning C4373: 'MockA::myFunc': virtual function overrides 'A::myFunc', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
  1&gt;          c:\dev\my_project\my_project\include\a.h(107) : see declaration of 'A::myFunc'
  </code></pre>
  
  <p>Any idea why?<br>
  Is this correct behavior?<br>
  How can I avoid this?</p>