Subject: [Boost-bugs] [Boost C++ Libraries] #8408: Boost is not compatible with Clang's -Wimplicit-fallthrough diagnostic
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-05 23:52:16
#8408: Boost is not compatible with Clang's -Wimplicit-fallthrough diagnostic
-----------------------------------------------------+----------------------
Reporter: Alexander Kornienko <alexfh@â¦> | Type: Patches
Status: new | Milestone: To Be Determined
Component: None | Version: Boost Development Trunk
Severity: Problem | Keywords:
-----------------------------------------------------+----------------------
Some of Boost source/header files trigger Clang's -Wimplicit-fallthrough
warning, which finds unannotated fall-throughs between case labels in
switch statements (more details on the diagnostic here:
http://clang.llvm.org/docs/LanguageExtensions.html#the-clang-fallthrough-
attribute).
I propose introducing BOOST_FALLTHROUGH macro to be used to annotate non-
trivial fall-through between case labels.
A patch with the macro and fixes to the code is attached.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8408> 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:12 UTC