title: How to enable compiler warning when comparing char and unsigned char?
body: <p>take for example the following C code :</p>
  
  <pre><code>int main(int argc, char *argv[])
  {
      signed char i;
      unsigned char count = 0xFF;
  
      for (i=0; i&lt;count;i++)
      {
          printf("%x\n", i);
      }
      return 0;
  }
  </code></pre>
  
  <p>This code runs in an infinite loop, even if I compile it as follows :</p>
  
  <pre><code># gcc -Wall -Wpedantic -Wconversion -Wsign-compare -Wtype-limits -Wsign-conversion test.c -o test
  </code></pre>
  
  <p>Does someone know for a compiler flag that should warn about those kind of issues ?</p>
  
  <p>Just to be clear, I'm not asking 'why is get an infinite loop', but to know if there's a way to prevent it using a compiler or static analysis ?</p>