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

    <tr>
        <th>Summary</th>
        <td>
            Particular C++ errors are only reported for arm64 architecture, and not on amd64 or i386
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    Build of the [dexed](https://github.com/asb2m10/dexed) project on arm64 fails with these errors:
```
/wrkdirs/usr/ports/audio/dexed/work/dexed-0.9.6-16-g1df9a58/Source/PluginData.cpp:113:13: error: taking the absolute value of unsigned type 'char' has no effect [-Werror,-Wabsolute-value]
    value = abs(value);
            ^
/wrkdirs/usr/ports/audio/dexed/work/dexed-0.9.6-16-g1df9a58/Source/PluginData.cpp:113:13: note: remove the call to 'abs' since unsigned values cannot be negative
    value = abs(value);
            ^~~
/wrkdirs/usr/ports/audio/dexed/work/dexed-0.9.6-16-g1df9a58/Source/PluginData.cpp:312:29: error: result of comparison of constant -1 with expression of type 'char' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
    return clipboardContent != -1;
           ~~~~~~~~~~~~~~~~ ^  ~~
2 errors generated.
```

But same code revision succeeds on amd64 and i386.

Relevant code lines:
* https://github.com/asb2m10/dexed/blob/master/Source/PluginData.cpp#L113
* https://github.com/asb2m10/dexed/blob/master/Source/PluginData.cpp#L312

clang versions 11-14
OS: FreeBSD 13

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzFVU2P2zgM_TXORbBhy3ESH3yYTDanBbbYOfRMW7SjHUUy9JGZ_Pul5KQzWxSDFkW7hiyLEEVSj490b8S12wepBDMj8ydkWbMX-Ioiaw4Z3528n11WP2T8SGOS_hT6YjBnEsD1_FyVtFr0ectma_7BwTOjGdjzZs1GkMqxFzoWbTtkaK2xyWB5yMqHbFPexiLy44t9FpI0-DE4S_NsrI8SBCHNm6_ji7HPdzEvi7bY5NUmnyoxttDsaOfJBDsgLT6pMEl9AA_FMM_kuqrqOMdpiScuPDxLPSUEoHdGBY_sAipgxCVoJyeNgvnrTAjx7XACCm7LTuCYNgzHMV6boMs_Lxb5Y_75bidPdiKe6ZKMnsVyVh-iM4J50eBtVu_flO5P1vzxf8Gjjcf4tXg2F0zoDKAU8yaikGLfMif1gG8Ypbs40tN0mvXINE7g5QV_4vrbNH4jCHXFaY4RveOIRReUj4SgCpjBSkdET5J2HrRnebVwHV9n0nVy2f6aNNIxUC9wdczbgF-zxkPwRplJEtD53XJuAr1jbkFPmC_e_8soiz5YzQYl596AFY9Ge6SQMl5FnPPqW9jecP3uEXPx5VQyxm8VzSbUaMGjKL5d2WneB88cnIlERiCFfJEJIxeGAVG41DfOgvoGaMFkvdsU70__jQovEeZ0WkmN7xoJf2A_0quOvTI9fc7gPNoPqMDrP2NB_HInkXDv7jooyjS7oI0AOVZVebVedv56ilQ8WsT904HdQ1uJrhZt3cLKS6-w-wTWyyEosOwx43sa90QRcQhndSX4Y91QwY7G3to12OEkPbWyQOzijykNsYi_5IU0Y1pWwaruAySUutw_-e2fQKJ0jhoDLZpmU65Xp46vNyWv63U9ir5dwyjqduzrZgu83eBY4UpBj8p1VCHE9ZXseMl52fCyrJpdVRdrGHbjdretsQEuxiZbl3imP04RHRfGTivbpRj6MDnaVNJ597YJLnUsvNunwjsZ212DlRc5-FWKt0vB_gv4YjLV">