title: Why Is Comparing if an Unsigned Int >= 0 a "Pointless Comparison"?
body: <p>I got warning:</p>
  
  <blockquote>
    <p>Pe186 "Pointless comparison of unsigned int with zero"</p>
  </blockquote>
  
  <p>when I tried to compile the following code: </p>
  
  <pre><code>for(clLoop = cpLoopStart; clLoop &gt;= 0; clLoop--)                                  
  {
      //Do something
  }
  </code></pre>
  
  <p>I don't understand why. I could understand, if I were looking for a value <em>less than</em> zero, since an <code>unsigned int</code> can never be negative. But all I am looking for here is if it is <em>equal</em> to zero, which an <code>unsigned int</code> certainly can be.</p>
  
  <p>I could even see this error if in this loop I tried to pre-decrement instead of post-decrement, but again that is not the case.</p>