title: sprintf annoying warning in Keil
body: <p>I am trying to use <code>sprintf();</code> function in Keil. But I have annoying warning. Let me explain my warning with example code part right below. When i debug, i get; </p>
  
  <blockquote>
    <p>warning:  #167-D: argument of type "uint8_t *" is incompatible with parameter of type "char *restrict"</p>
  </blockquote>
  
  <p>And it warns me on the line about format types.</p>
  
  <p>I know sprintf function is not a good solution but i really wonder why this warning show off?</p>
  
  <p>Thanks</p>
  
  <pre><code>#include "stm32l0xx.h"  // Device header
  #include &lt;stdio.h&gt;
  
  void LCD_show(uint32_t  s_value)
  
  {
  
    uint8_t str[9], i;
  
    for ( i = 0; i &lt; 9 ; i++) str[i] = 0;
  
    sprintf( str, "%9ld", s_value );
  
  }
  </code></pre>