title: Throw an error/warning when supplying wrong argument type to C function
body: <p>I have this code:</p>
  <pre><code>#include &lt;stdint.h&gt;
  
  void something(float a);
  
  int main()
  {
     uint8_t a = 28;
     
     something(a);
  
     return 0;
  }
  
  void something(float a)
  {
     
     printf(&quot;%f\n&quot;, a);
  }
  </code></pre>
  <p>I am using a similar function to log variables of different types to a file and I would like to get an error/warning message since I am calling function <em>something</em> with a wrong argument type (uint8_t instead of float).</p>
  <p>How can I achieve this?</p>