mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-28 06:14:10 +08:00
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
This commit is contained in:
parent
b0088af7b1
commit
93c5d31c00
@ -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>
|
2006-12-29 Paolo Carlini <pcarlini@suse.de>
|
||||||
|
|
||||||
PR libstdc++/30226
|
PR libstdc++/30226
|
||||||
|
@ -235,7 +235,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
|||||||
if ((mode & (ios_base::in | ios_base::out))
|
if ((mode & (ios_base::in | ios_base::out))
|
||||||
== (ios_base::in | ios_base::out) &&
|
== (ios_base::in | ios_base::out) &&
|
||||||
(dir == ios_base::beg || dir == ios_base::end))
|
(dir == ios_base::beg || dir == ios_base::end))
|
||||||
do_get = do_put = true;
|
do_get = (do_put = true);
|
||||||
else if (mode & ios_base::in)
|
else if (mode & ios_base::in)
|
||||||
do_get = true;
|
do_get = true;
|
||||||
else if (mode & ios_base::out)
|
else if (mode & ios_base::out)
|
||||||
|
Loading…
Reference in New Issue
Block a user