Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84012 - in trunk: boost/wave/util libs/wave libs/wave/samples/cpp_tokens/slex
From: hartmut.kaiser_at_[hidden]
Date: 2013-04-22 13:01:52


Author: hkaiser
Date: 2013-04-22 13:01:51 EDT (Mon, 22 Apr 2013)
New Revision: 84012
URL: http://svn.boost.org/trac/boost/changeset/84012

Log:
Fixed #8478: Make Boost.wave compatible with Clang's -Wimplicit-fallthrough diagnostic.
Text files modified:
   trunk/boost/wave/util/flex_string.hpp | 16 ++++++++--------
   trunk/libs/wave/ChangeLog | 4 ++++
   trunk/libs/wave/samples/cpp_tokens/slex/cpp_slex_lexer.hpp | 2 +-
   3 files changed, 13 insertions(+), 9 deletions(-)

Modified: trunk/boost/wave/util/flex_string.hpp
==============================================================================
--- trunk/boost/wave/util/flex_string.hpp (original)
+++ trunk/boost/wave/util/flex_string.hpp 2013-04-22 13:01:51 EDT (Mon, 22 Apr 2013)
@@ -139,14 +139,14 @@
         case 0:
             while (b != e)
             {
- *b = c; ++b;
- case 7: *b = c; ++b;
- case 6: *b = c; ++b;
- case 5: *b = c; ++b;
- case 4: *b = c; ++b;
- case 3: *b = c; ++b;
- case 2: *b = c; ++b;
- case 1: *b = c; ++b;
+ *b = c; ++b; BOOST_FALLTHROUGH;
+ case 7: *b = c; ++b; BOOST_FALLTHROUGH;
+ case 6: *b = c; ++b; BOOST_FALLTHROUGH;
+ case 5: *b = c; ++b; BOOST_FALLTHROUGH;
+ case 4: *b = c; ++b; BOOST_FALLTHROUGH;
+ case 3: *b = c; ++b; BOOST_FALLTHROUGH;
+ case 2: *b = c; ++b; BOOST_FALLTHROUGH;
+ case 1: *b = c; ++b; BOOST_FALLTHROUGH;
             }
         }
     }

Modified: trunk/libs/wave/ChangeLog
==============================================================================
--- trunk/libs/wave/ChangeLog (original)
+++ trunk/libs/wave/ChangeLog 2013-04-22 13:01:51 EDT (Mon, 22 Apr 2013)
@@ -20,6 +20,10 @@
 
 CHANGELOG
 
+Boost V1.54:
+ - Fixed #8478: Make Boost.wave compatible with Clang's -Wimplicit-fallthrough
+ diagnostic.
+
 Boost V1.53:
  - Fixed a problem with context<>::add_macro_definition which sometimes
    appended a superfluous T_EOF to the macro replacement list.

Modified: trunk/libs/wave/samples/cpp_tokens/slex/cpp_slex_lexer.hpp
==============================================================================
--- trunk/libs/wave/samples/cpp_tokens/slex/cpp_slex_lexer.hpp (original)
+++ trunk/libs/wave/samples/cpp_tokens/slex/cpp_slex_lexer.hpp 2013-04-22 13:01:51 EDT (Mon, 22 Apr 2013)
@@ -658,7 +658,7 @@
                     case T_EXTSTRINGLIT:
                     case T_EXTRAWSTRINGLIT:
                         id = token_id(id & ~AltTokenType);
- // fall through
+ BOOST_FALLTHROUGH;
 
                     case T_CHARLIT:
                     case T_STRINGLIT:


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