1.cc: Avoid -Wall warnings.
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 10 Aug 2010 11:28:23 +0000 (11:28 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 10 Aug 2010 11:28:23 +0000 (11:28 +0000)
2010-08-10  Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/ext/stdio_sync_filebuf/char/1.cc: Avoid -Wall
warnings.
* testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc: Likewise.

From-SVN: r163056

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/1.cc
libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc

index 747ebc35b6ef7af6e7eed418c57311d1bcbffc88..dc7b244aabad0d6f871fd59d424e74197e084a9c 100644 (file)
@@ -1,3 +1,9 @@
+2010-08-10  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * testsuite/ext/stdio_sync_filebuf/char/1.cc: Avoid -Wall
+       warnings.
+       * testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc: Likewise.
+
 2010-08-10  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * testsuite/23_containers/array/range_access.cc: Avoid -Wall
index dab6c50b64dde42cbacc26e4aa02f571144bf97e..47b337213492a9b305ae61c756739a182cac7b99 100644 (file)
@@ -1,6 +1,7 @@
 // 2003-05-01 Petur Runolfsson <peturr02@ru.is>
 
-// Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation
+// Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 
+// Free Software Foundation
 //
 // 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
@@ -29,7 +30,7 @@ void test01()
 
   bool test __attribute__((unused)) = true;
   const char* c_lit = "black pearl jasmine tea";
-  int size = strlen(c_lit);
+  unsigned size = strlen(c_lit);
   const char* name = "stdiobuf-1.txt";
 
   FILE* fout = fopen(name, "w");
index 61e7a553482a898dd4a63b20d0cbe914065a87d2..2629ecb43b639a55e5cc1c08bb627076baab52b9 100644 (file)
@@ -1,6 +1,7 @@
 // 2003-05-01 Petur Runolfsson <peturr02@ru.is>
 
-// Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation
+// Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+// Free Software Foundation
 //
 // 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
@@ -29,7 +30,7 @@ void test01()
   bool test __attribute__((unused)) = true;
   const char* c_lit = "black pearl jasmine tea";
   const wchar_t* w_lit = L"black pearl jasmine tea";
-  int size = strlen(c_lit);
+  unsigned size = strlen(c_lit);
   const char* name = "stdiobuf-1.txt";
 
   FILE* fout = fopen(name, "w");