[Libreoffice-commits] core.git: external/boost
Caolán McNamara
caolanm at redhat.com
Thu May 12 11:39:34 UTC 2016
external/boost/fallthrough.patch.0 | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
New commits:
commit 52909035af5e91e89a8baad3b74828e648628dd3
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu May 12 12:37:48 2016 +0100
have another stab at fixing the -Wimplicit-fallthrough in json_parser
without triggering a -Wimplicit-fallthrough in unreachable code
Change-Id: I971272ffcf87d7224265a9a3ae87fcf8129c7a7a
diff --git a/external/boost/fallthrough.patch.0 b/external/boost/fallthrough.patch.0
index ed9c83b..8b0fb1d 100644
--- a/external/boost/fallthrough.patch.0
+++ b/external/boost/fallthrough.patch.0
@@ -34,11 +34,13 @@
case 'i':
--- ./boost/property_tree/detail/json_parser/standard_callbacks.hpp
+++ ./boost/property_tree/detail/json_parser/standard_callbacks.hpp
-@@ -117,6 +117,7 @@
+@@ -116,8 +116,8 @@
+ return *stack.back().t;
}
case object:
- assert(false); // must start with string, i.e. call new_value
-+ BOOST_FALLTHROUGH;
+- assert(false); // must start with string, i.e. call new_value
case key: {
++ assert(l.k != object); // must start with string, i.e. call new_value
l.t->push_back(std::make_pair(key_buffer, Ptree()));
l.k = object;
+ layer nl = {leaf, &l.t->back().second};
More information about the Libreoffice-commits
mailing list