Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57270 - trunk/libs/program_options/src
From: ghost_at_[hidden]
Date: 2009-11-01 04:18:35


Author: vladimir_prus
Date: 2009-11-01 04:18:33 EST (Sun, 01 Nov 2009)
New Revision: 57270
URL: http://svn.boost.org/trac/boost/changeset/57270

Log:
Fix 'ambiguous else clause' compiler warning.
Fixes #3556.

Patch from Mateusz Loskot.

Text files modified:
   trunk/libs/program_options/src/options_description.cpp | 2 ++
   1 files changed, 2 insertions(+), 0 deletions(-)

Modified: trunk/libs/program_options/src/options_description.cpp
==============================================================================
--- trunk/libs/program_options/src/options_description.cpp (original)
+++ trunk/libs/program_options/src/options_description.cpp 2009-11-01 04:18:33 EST (Sun, 01 Nov 2009)
@@ -72,10 +72,12 @@
             if (approx)
             {
                 if (m_long_name.find(option) == 0)
+ {
                     if (m_long_name == option)
                         result = full_match;
                     else
                         result = approximate_match;
+ }
             }
             else
             {


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