2006-02-04 Paolo Carlini <pcarlini@suse.de>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 4 Feb 2006 10:00:58 +0000 (10:00 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 4 Feb 2006 10:00:58 +0000 (10:00 +0000)
* testsuite/27_io/basic_stringbuf/in_avail/char/21955.cc: Avoid
warning on string constant.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110587 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/char/21955.cc

index 3a056ef..d7aaa08 100644 (file)
@@ -1,3 +1,8 @@
+2006-02-04  Paolo Carlini  <pcarlini@suse.de>
+
+       * testsuite/27_io/basic_stringbuf/in_avail/char/21955.cc: Avoid
+       warning on string constant.
+
 2006-02-03  Paolo Carlini  <pcarlini@suse.de>
 
        * include/tr1/cwchar: New.
index ba37b3b..6c587dd 100644 (file)
@@ -1,6 +1,6 @@
 // 2005-06-07 Benjamin Kosnik
 
-// Copyright (C) 2005
+// Copyright (C) 2005, 2006
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -27,7 +27,7 @@ double
 test_stringstream()
 {
   double result;
-  char* source = "1918"; 
+  const char* source = "1918"; 
   std::stringstream s;
   s << source;