This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]