summaryrefslogtreecommitdiff
path: root/test/std/depr/depr.c.headers/setjmp_h.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/depr/depr.c.headers/setjmp_h.pass.cpp')
-rw-r--r--test/std/depr/depr.c.headers/setjmp_h.pass.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/std/depr/depr.c.headers/setjmp_h.pass.cpp b/test/std/depr/depr.c.headers/setjmp_h.pass.cpp
index 9bc35b747493c..9663d8892ac50 100644
--- a/test/std/depr/depr.c.headers/setjmp_h.pass.cpp
+++ b/test/std/depr/depr.c.headers/setjmp_h.pass.cpp
@@ -19,6 +19,7 @@
int main()
{
jmp_buf jb;
+ ((void)jb); // Prevent unused warning
static_assert((std::is_same<decltype(longjmp(jb, 0)), void>::value),
"std::is_same<decltype(longjmp(jb, 0)), void>::value");
}