From fb42f4c44adc1e2ac25c1305e77d53e735012b77 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Mon, 2 May 2016 19:15:48 +0000 Subject: Void cast runtime-unused variables. Patch from STL@microsoft.com llvm-svn: 268284 --- libcxx/test/std/language.support/support.runtime/csetjmp.pass.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libcxx/test/std/language.support/support.runtime/csetjmp.pass.cpp') diff --git a/libcxx/test/std/language.support/support.runtime/csetjmp.pass.cpp b/libcxx/test/std/language.support/support.runtime/csetjmp.pass.cpp index dc034ce099e..f5060305608 100644 --- a/libcxx/test/std/language.support/support.runtime/csetjmp.pass.cpp +++ b/libcxx/test/std/language.support/support.runtime/csetjmp.pass.cpp @@ -19,6 +19,7 @@ int main() { std::jmp_buf jb; + ((void)jb); // Prevent unused warning static_assert((std::is_same::value), "std::is_same::value"); } -- cgit v1.2.3