From d0a95f96e07b369a8a148ff23e5730aa1aa39ec0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 1 Dec 2017 17:11:15 +0200 Subject: Fix GCC 7 -fimplicit-fallthrough warnings --- libstudxml/parser.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libstudxml/parser.cxx') diff --git a/libstudxml/parser.cxx b/libstudxml/parser.cxx index 343d492..11e4aaa 100644 --- a/libstudxml/parser.cxx +++ b/libstudxml/parser.cxx @@ -452,8 +452,8 @@ namespace xml pqname_ = &qname_; break; // No more declarations. } - // Fall through. } + // Fall through. case start_element: { event_ = start_namespace_decl; @@ -497,8 +497,8 @@ namespace xml pvalue_ = &value_; break; // No more attributes. } - // Fall through. } + // Fall through. case start_element: case start_namespace_decl: { @@ -531,13 +531,13 @@ namespace xml pqname_ = &qname_; break; // No more declarations. } - // Fall through. } - // The end namespace declaration comes before the end element - // which means it can follow pretty much any other event. - // + // Fall through. default: { + // The end namespace declaration comes before the end element which + // means it can follow pretty much any other event. + // event_ = end_namespace_decl; pqname_ = &end_ns_[end_ns_i_]; return event_; -- cgit v1.1