diff options
author | Ben Elliston <bje@au.ibm.com> | 2007-01-04 23:43:14 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2007-01-05 10:43:14 +1100 |
commit | 93c5d31c006bcd7ae1da4d6590c4b99b69eb9fbb (patch) | |
tree | 00fe097a97f6408d24d0fe3a3107d2010eac6e15 /libstdc++-v3 | |
parent | b0088af7b1732301355d0c84e5caa1c09859eef4 (diff) | |
download | gcc-93c5d31c006bcd7ae1da4d6590c4b99b69eb9fbb.tar.gz |
strstream.cc (strstreambuf::seekoff): Add parentheses around truth expression to eliminate a new warning from g++.
* src/strstream.cc (strstreambuf::seekoff): Add parentheses around
truth expression to eliminate a new warning from g++.
From-SVN: r120457
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/src/strstream.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index d1a79955553..d8bc1126d68 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2007-01-05 Ben Elliston <bje@au.ibm.com> + + * src/strstream.cc (strstreambuf::seekoff): Add parentheses around + truth expression to eliminate a new warning from g++. + 2006-12-29 Paolo Carlini <pcarlini@suse.de> PR libstdc++/30226 diff --git a/libstdc++-v3/src/strstream.cc b/libstdc++-v3/src/strstream.cc index f2214549ab7..3c5d8be839e 100644 --- a/libstdc++-v3/src/strstream.cc +++ b/libstdc++-v3/src/strstream.cc @@ -235,7 +235,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) if ((mode & (ios_base::in | ios_base::out)) == (ios_base::in | ios_base::out) && (dir == ios_base::beg || dir == ios_base::end)) - do_get = do_put = true; + do_get = (do_put = true); else if (mode & ios_base::in) do_get = true; else if (mode & ios_base::out) |