[libc-commits] [libc] [libc] Add -Werror for libc tests (PR #160413)

via libc-commits libc-commits at lists.llvm.org
Tue Oct 21 07:49:12 PDT 2025


================
@@ -33,7 +33,7 @@ static void handler(int) {
   // out or mapped to a register.
   uint8_t var[LOCAL_VAR_SIZE];
   for (int i = 0; i < LOCAL_VAR_SIZE; ++i)
-    var[i] = i;
+    var[i] = (uint8_t)i;
----------------
lntue wrote:

use `static_cast`

https://github.com/llvm/llvm-project/pull/160413


More information about the libc-commits mailing list