[libc-commits] [libc] [libc] temporarily set -Wno-shorten-64-to-32 (PR #77396)

via libc-commits libc-commits at lists.llvm.org
Mon Jan 8 16:17:09 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Nick Desaulniers (nickdesaulniers)

<details>
<summary>Changes</summary>

This is still broken after #<!-- -->77350. Disable the warning for now, and fix
properly once the buildbot it back to green.

Link: https://github.com/llvm/llvm-project/issues/77395


---
Full diff: https://github.com/llvm/llvm-project/pull/77396.diff


1 Files Affected:

- (modified) libc/src/sys/mman/linux/CMakeLists.txt (+4) 


``````````diff
diff --git a/libc/src/sys/mman/linux/CMakeLists.txt b/libc/src/sys/mman/linux/CMakeLists.txt
index 163e7dead8887a..6aaa2164a12dd6 100644
--- a/libc/src/sys/mman/linux/CMakeLists.txt
+++ b/libc/src/sys/mman/linux/CMakeLists.txt
@@ -22,6 +22,10 @@ add_entrypoint_object(
     libc.include.sys_syscall
     libc.src.__support.OSUtil.osutil
     libc.src.errno.errno
+  COMPILE_OPTIONS
+    # TODO: https://github.com/llvm/llvm-project/issues/77395
+    -Wno-shorten-64-to-32
+    -Wdafasdf
 )
 
 add_entrypoint_object(

``````````

</details>


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


More information about the libc-commits mailing list