aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/17_intro/header_csetjmp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/testsuite/17_intro/header_csetjmp.cc')
-rw-r--r--libstdc++-v3/testsuite/17_intro/header_csetjmp.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/17_intro/header_csetjmp.cc b/libstdc++-v3/testsuite/17_intro/header_csetjmp.cc
index 4e2610de4f2..1cbb630e752 100644
--- a/libstdc++-v3/testsuite/17_intro/header_csetjmp.cc
+++ b/libstdc++-v3/testsuite/17_intro/header_csetjmp.cc
@@ -1,6 +1,6 @@
// 2001-02-06 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2003 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -27,7 +27,7 @@ namespace gnu
void test01()
{
std::jmp_buf env;
- int i = setjmp(env);
+ int i __attribute__((unused)) = setjmp(env);
#ifndef setjmp
#error "setjmp_must_be_a_macro"
#endif