mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-22 16:37:40 +08:00
Void cast runtime-unused variables. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268284 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
int main()
|
||||
{
|
||||
std::jmp_buf jb;
|
||||
((void)jb); // Prevent unused warning
|
||||
static_assert((std::is_same<decltype(std::longjmp(jb, 0)), void>::value),
|
||||
"std::is_same<decltype(std::longjmp(jb, 0)), void>::value");
|
||||
}
|
||||
|
Reference in New Issue
Block a user