[Boost-bugs] [Boost C++ Libraries] #3556: Missing explicit braces to avoid ambiguous else clause

Subject: [Boost-bugs] [Boost C++ Libraries] #3556: Missing explicit braces to avoid ambiguous else clause
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-10-24 13:30:08


#3556: Missing explicit braces to avoid ambiguous else clause
------------------------------------------+---------------------------------
 Reporter: mloskot <mateusz@…> | Owner: vladimir_prus
     Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: program_options
  Version: Boost Development Trunk | Severity: Cosmetic
 Keywords: |
------------------------------------------+---------------------------------
 While building Boost from current trunk (r57126) using GCC 4.4.1 I'm
 getting the following warning for Boost Program Options:

 {{{
 gcc.compile.c++ bin.v2/libs/program_options/build/gcc-4.4.1/release/link-
 static/threading-multi/options_description.o
 libs/program_options/src/options_description.cpp: In member function
 â€˜boost::program_options::option_description::match_result
 boost::program_options::option_description::match(const std::string&,
 bool) const’:
 libs/program_options/src/options_description.cpp:74: warning: suggest
 explicit braces to avoid ambiguous ‘else
 }}}

 Patch adding the extra braces attached.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3556>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC