public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* PATCH: fix warning in libstdc++/src/strstream.cc
@ 2007-01-04 23:43 Ben Elliston
  2007-01-04 23:45 ` Andrew Pinski
  2007-01-05  2:30 ` Ian Lance Taylor
  0 siblings, 2 replies; 6+ messages in thread
From: Ben Elliston @ 2007-01-04 23:43 UTC (permalink / raw)
  To: libstdc++; +Cc: gcc-patches, iant

This new warning popped up as a result of some diagnostics work that I
think I saw mentioned in list traffic.  Committed as obvious.

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++.

Index: src/strstream.cc
===================================================================
--- src/strstream.cc    (revision 120450)
+++ src/strstream.cc    (working copy)
@@ -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)


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-01-05  2:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-04 23:43 PATCH: fix warning in libstdc++/src/strstream.cc Ben Elliston
2007-01-04 23:45 ` Andrew Pinski
2007-01-04 23:50   ` Ian Lance Taylor
2007-01-05  0:05     ` Ben Elliston
2007-01-04 23:51   ` Paolo Carlini
2007-01-05  2:30 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).