summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/17_intro/header_cstddef.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/testsuite/17_intro/header_cstddef.cc')
-rw-r--r--libstdc++-v3/testsuite/17_intro/header_cstddef.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/17_intro/header_cstddef.cc b/libstdc++-v3/testsuite/17_intro/header_cstddef.cc
index eab1c75386a..69f83f07f3a 100644
--- a/libstdc++-v3/testsuite/17_intro/header_cstddef.cc
+++ b/libstdc++-v3/testsuite/17_intro/header_cstddef.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
@@ -32,7 +32,7 @@ namespace gnu
void test01()
{
- std::size_t i = offsetof(struct test_type, i);
+ std::size_t i __attribute__((unused)) = offsetof(struct test_type, i);
#ifndef offsetof
#error "offsetof_must_be_a_macro"
#endif