diff options
author | Paolo Carlini <pcarlini@suse.de> | 2006-02-04 10:00:58 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2006-02-04 10:00:58 +0000 |
commit | 5622277de121e824b4d6f04a81e49a429eca00c1 (patch) | |
tree | 8e5eff5e8e4bac6f1f55880dd0c652f75999a960 | |
parent | 3df6582b4758a45cec6fbf55917e63030a2c598f (diff) | |
download | gcc-5622277de121e824b4d6f04a81e49a429eca00c1.zip gcc-5622277de121e824b4d6f04a81e49a429eca00c1.tar.gz gcc-5622277de121e824b4d6f04a81e49a429eca00c1.tar.bz2 |
21955.cc: Avoid warning on string constant.
2006-02-04 Paolo Carlini <pcarlini@suse.de>
* testsuite/27_io/basic_stringbuf/in_avail/char/21955.cc: Avoid
warning on string constant.
From-SVN: r110587
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/char/21955.cc | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 3a056ef..d7aaa08 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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. diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/char/21955.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/char/21955.cc index ba37b3b..6c587dd 100644 --- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/char/21955.cc +++ b/libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/char/21955.cc @@ -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; |