title: What does this statement mean in C: "(void)ptr;"
body: <p>It may not be clear from the title. I came across the following code in an embedded STM32 project. I don't understand the line inside the function.</p>
  
  <pre><code>    static void txend1(UARTDriver *uartp) {
          (void)uartp; // what does this do? Is it a statement?
      }
  </code></pre>
  
  <p>I've tried searching elsewhere online, but most results are casting pointers to void pointers, which I don't think this is. Thanks for the help!</p>