Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50214 - in trunk: boost/spirit/home/classic/symbols/impl libs/program_options/src
From: daniel_james_at_[hidden]
Date: 2008-12-08 18:35:33


Author: danieljames
Date: 2008-12-08 18:35:33 EST (Mon, 08 Dec 2008)
New Revision: 50214
URL: http://svn.boost.org/trac/boost/changeset/50214

Log:
Avoid a couple of gcc warnings.
Text files modified:
   trunk/boost/spirit/home/classic/symbols/impl/tst.ipp | 4 ++--
   trunk/libs/program_options/src/value_semantic.cpp | 4 ++--
   2 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/boost/spirit/home/classic/symbols/impl/tst.ipp
==============================================================================
--- trunk/boost/spirit/home/classic/symbols/impl/tst.ipp (original)
+++ trunk/boost/spirit/home/classic/symbols/impl/tst.ipp 2008-12-08 18:35:33 EST (Mon, 08 Dec 2008)
@@ -136,7 +136,7 @@
             node_t** np = &root;
             CharT ch = *first;
 
- BOOST_SPIRIT_ASSERT(first == last || ch != 0
+ BOOST_SPIRIT_ASSERT((first == last || ch != 0)
                 && "Won't add string containing null character");
 
             for (;;)
@@ -174,7 +174,7 @@
                        }
                         ++first;
                         ch = (first == last) ? CharT(0) : *first;
- BOOST_SPIRIT_ASSERT(first == last || ch != 0
+ BOOST_SPIRIT_ASSERT((first == last || ch != 0)
                             && "Won't add string containing null character");
                         np = &(**np).middle.link;
                     }

Modified: trunk/libs/program_options/src/value_semantic.cpp
==============================================================================
--- trunk/libs/program_options/src/value_semantic.cpp (original)
+++ trunk/libs/program_options/src/value_semantic.cpp 2008-12-08 18:35:33 EST (Mon, 08 Dec 2008)
@@ -171,8 +171,8 @@
         check_first_occurrence(v);
         string s(get_single_string(xs));
         if (!s.empty() && (
- (*s.begin() == '\'' && *s.rbegin() == '\'' ||
- *s.begin() == '"' && *s.rbegin() == '"')))
+ ((*s.begin() == '\'' && *s.rbegin() == '\'') ||
+ (*s.begin() == '"' && *s.rbegin() == '"'))))
         {
             v = any(s.substr(1, s.size()-2));
         }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk