[libc-commits] [libc] 5753218 - [libc][Obvious] Suppress unused-variable warnings from syscall_unittest.
Tue Ly via libc-commits
libc-commits at lists.llvm.org
Mon Feb 7 13:22:19 PST 2022
Author: Tue Ly
Date: 2022-02-07T16:22:08-05:00
New Revision: 57532188526c210334e64184edb218f292bfbc08
URL: https://github.com/llvm/llvm-project/commit/57532188526c210334e64184edb218f292bfbc08
DIFF: https://github.com/llvm/llvm-project/commit/57532188526c210334e64184edb218f292bfbc08.diff
LOG: [libc][Obvious] Suppress unused-variable warnings from syscall_unittest.
The unused vararibles in the tests are intentional.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D119183
Added:
Modified:
libc/test/src/__support/OSUtil/linux/x86_64/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/test/src/__support/OSUtil/linux/x86_64/CMakeLists.txt b/libc/test/src/__support/OSUtil/linux/x86_64/CMakeLists.txt
index b6f57eb41f729..63e33baaf1635 100644
--- a/libc/test/src/__support/OSUtil/linux/x86_64/CMakeLists.txt
+++ b/libc/test/src/__support/OSUtil/linux/x86_64/CMakeLists.txt
@@ -3,5 +3,7 @@ add_libc_unittest(
SUITE libc_osutil_tests
SRCS syscall_test.cpp
DEPENDS
- libc.src.__support.OSUtil.osutil
+ libc.src.__support.OSUtil.osutil
+ COMPILE_OPTIONS
+ -Wno-unused-variable # Only signature tests, declared variables are unused.
)
More information about the libc-commits
mailing list