title: Avoid warning 'Unreferenced Formal Parameter'
body: <p>I have a super class like this:</p>
  
  <pre><code>class Parent
  {
  public:
      virtual void Function(int param);
  };
  
  void Parent::Function(int param)
  {
      std::cout &lt;&lt; param &lt;&lt; std::endl;
  }
  </code></pre>
  
  <p>..and a sub-class like this:</p>
  
  <pre><code>class Child : public Parent
  {
  public:
      void Function(int param);
  };
  
  void Child::Function(int param)
  {
      ;//Do nothing
  }
  </code></pre>
  
  <p>When I compile the sub-class .cpp file, I get this error</p>
  
  <pre><code>warning C4100: 'param' : unreferenced formal parameter
  </code></pre>
  
  <p>As a practice, we used to treat warnings as errors. How to avoid the above warning?</p>
  
  <p>Thanks.</p>