This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Avoid some -O2 -g -Wall warnings in the testsuite
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 22 Jun 2009 16:58:33 +0200
- Subject: [v3] Avoid some -O2 -g -Wall warnings in the testsuite
Hi,
committed to mainline.
Paolo.
///////////////////
2009-06-22 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/23_containers/list/invalidation/1.cc: Mark test as
possibly unused.
* testsuite/23_containers/list/invalidation/2.cc: Likewise.
* testsuite/23_containers/list/invalidation/3.cc: Likewise.
* testsuite/23_containers/list/invalidation/4.cc: Likewise.
Index: testsuite/23_containers/list/invalidation/1.cc
===================================================================
--- testsuite/23_containers/list/invalidation/1.cc (revision 148794)
+++ testsuite/23_containers/list/invalidation/1.cc (working copy)
@@ -26,7 +26,7 @@
{
using std::advance;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef __gnu_debug::list<int> list_type;
list_type v1;
Index: testsuite/23_containers/list/invalidation/2.cc
===================================================================
--- testsuite/23_containers/list/invalidation/2.cc (revision 148794)
+++ testsuite/23_containers/list/invalidation/2.cc (working copy)
@@ -26,7 +26,7 @@
{
using std::advance;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef __gnu_debug::list<int> list_type;
Index: testsuite/23_containers/list/invalidation/3.cc
===================================================================
--- testsuite/23_containers/list/invalidation/3.cc (revision 148794)
+++ testsuite/23_containers/list/invalidation/3.cc (working copy)
@@ -26,7 +26,7 @@
{
using std::advance;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef __gnu_debug::list<int> list_type;
list_type v(20, 42);
Index: testsuite/23_containers/list/invalidation/4.cc
===================================================================
--- testsuite/23_containers/list/invalidation/4.cc (revision 148794)
+++ testsuite/23_containers/list/invalidation/4.cc (working copy)
@@ -26,7 +26,7 @@
{
using std::advance;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef __gnu_debug::list<int> list_type;