From bf6112f98d764415e2feb50c0ec24bf234af68d2 Mon Sep 17 00:00:00 2001 From: vslashg Date: Fri, 1 Dec 2023 15:20:12 -0500 Subject: [PATCH] Use BOOST_FALLTHROUGH in place of comments. Some static analyzers complain about unannotated case fallthrough; using BOOST_FALLTHROUGH from config.hpp silences these and serves the same documentation purpose. --- include/boost/date_time/time_facet.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/boost/date_time/time_facet.hpp b/include/boost/date_time/time_facet.hpp index 98c133ae..8758ef6a 100644 --- a/include/boost/date_time/time_facet.hpp +++ b/include/boost/date_time/time_facet.hpp @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -866,7 +867,7 @@ namespace date_time { break; // %s is the same as %S%f so we drop through into %f } - /* Falls through. */ + BOOST_FALLTHROUGH; case 'f': { // check for decimal, check special_values if missing @@ -1140,7 +1141,7 @@ namespace date_time { // %s is the same as %S%f so we drop through into %f if we are // not at the end of the stream } - /* Falls through. */ + BOOST_FALLTHROUGH; case 'f': { // check for decimal, check SV if missing