title: What does "(void)temp;" statement mean?
body: <p>I was going through some code and came across a piece of code which was like this:-</p>
  
  <pre><code>void func(int a)
  {
     int temp;
         ...
         ....
     temp=a;
     (void)temp;
  }
  </code></pre>
  
  <p>What does the temp variable do here? If I compile it using -Wall option, I do not get any compilation error or warning either. Please help me understand this code style.
  Thanks.</p>