<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/58375>58375</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Add -Wtype-limits to -Wextra for GCC compatibility
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang:diagnostics
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          AaronBallman
      </td>
    </tr>
</table>

<pre>
    GCC added the -Wtype-limits warning group to -Wextra around GCC 4.4 and the group has some very helpful extra warnings like tautological comparison type limit warnings (comparing an unsigned int to see if it's positive, etc).

https://godbolt.org/z/nvj16WE71
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxdksly3CAQQL8GXbpGJYHQcuAwtuN8gs9IIKltBlTQmmTy9WE0TjnlKvbeXnczBnNTP5-fQRtjDdBq4fRGt82eHF6QEvzS0aNfYIlh34BCFtvfFDXo_OAN3G2bsgHtH9YPvVUnSOFi4WrjDVbrtnl38DD89JjA4YcF0jsFFxactIMpXDYdMQUPdwY4GL4MGO8_NTKQ9rD7hIvP2OjpjpasBZwBifEuwRYSEl4t489gaWJ8KFn1wqrzY12JtsTEmfHXPJZgxuCoDHHJtz95-ut73b796OrCqrptZS_6RgyFUcIMYtAFITmrzsZ8K9h_JZpDPOpzQBOO6JBuxR6d-hYcad3HMqvli3PXf9tpi-HdTjmdV0xptykfMkcni1W1bS217IfcNd2MfddUgzSinoa27-p5FoXTo3VJMfnEOJ-c9kuOZ1AvPiTCKfviTL4UqHjFeV3VsuZSyKHsejHLfqxFN3Zi6AfWVPai0ZV3ont9iqgOuHFfUhY6TJS-hDodPbFH4Ow_t3cNUZ3zd_FP2rmL9sWRjDoy-QvavtNo">