[libc-commits] [PATCH] D119183: [libc][Obvious] Suppress unused-variable warnings from syscall_unittest.

Tue Ly via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Feb 7 12:56:25 PST 2022


lntue created this revision.
lntue added reviewers: abrachet, michaelrj, sivachandra.
Herald added subscribers: ecnelises, tschuett, mgorny.
Herald added a project: libc-project.
lntue requested review of this revision.

The unused vararibles in the tests are intentional.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119183

Files:
  libc/test/src/__support/OSUtil/linux/x86_64/CMakeLists.txt


Index: libc/test/src/__support/OSUtil/linux/x86_64/CMakeLists.txt
===================================================================
--- libc/test/src/__support/OSUtil/linux/x86_64/CMakeLists.txt
+++ libc/test/src/__support/OSUtil/linux/x86_64/CMakeLists.txt
@@ -3,5 +3,7 @@
   SUITE libc_osutil_tests
   SRCS syscall_test.cpp
   DEPENDS
-   libc.src.__support.OSUtil.osutil
+    libc.src.__support.OSUtil.osutil
+  COMPILE_OPTIONS
+    -Wno-unused-variable
 )


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119183.406581.patch
Type: text/x-patch
Size: 462 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220207/45ed3277/attachment.bin>


More information about the libc-commits mailing list