From 62189d3b860769923b007d1982682159a8de80d9 Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Sun, 11 Jun 2017 17:50:15 -0400 Subject: [PATCH] Add BOOST_FALLTHROUGH for gcc --- include/boost/config/compiler/gcc.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/config/compiler/gcc.hpp b/include/boost/config/compiler/gcc.hpp index a759c4b4..da05a63e 100644 --- a/include/boost/config/compiler/gcc.hpp +++ b/include/boost/config/compiler/gcc.hpp @@ -299,6 +299,10 @@ # define BOOST_NO_CXX17_FOLD_EXPRESSIONS #endif +#if __GNUC__ >= 7 +# define BOOST_FALLTHROUGH __attribute__((fallthrough)) +#endif + // // Unused attribute: #if __GNUC__ >= 4