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

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Mon Jan 8 16:16:36 PST 2024


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

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


>From 9a042f6ed2ce9011d136d80aec3ebe071551c99d Mon Sep 17 00:00:00 2001
From: Nick Desaulniers <ndesaulniers at google.com>
Date: Mon, 8 Jan 2024 16:15:12 -0800
Subject: [PATCH] [libc] temporarily set -Wno-shorten-64-to-32

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
---
 libc/src/sys/mman/linux/CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

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(



More information about the libc-commits mailing list