diff --git a/external/boost/UnpackedTarball_boost.mk b/external/boost/UnpackedTarball_boost.mk index 1d555de9861e..23b9a3c23dc8 100644 --- a/external/boost/UnpackedTarball_boost.mk +++ b/external/boost/UnpackedTarball_boost.mk @@ -34,6 +34,8 @@ boost_patches += boost.file_iterator.sharing_win.patch boost_patches += Wundef.patch.0 +boost_patches += boost.spirit.noreturn.patch + $(eval $(call gb_UnpackedTarball_UnpackedTarball,boost)) $(eval $(call gb_UnpackedTarball_set_tarball,boost,$(BOOST_TARBALL))) diff --git a/external/boost/boost.spirit.noreturn.patch b/external/boost/boost.spirit.noreturn.patch new file mode 100644 index 000000000000..7dee13a28c68 --- /dev/null +++ b/external/boost/boost.spirit.noreturn.patch @@ -0,0 +1,11 @@ +--- foo/misc/boost/boost/spirit/home/classic/error_handling/exceptions.hpp ++++ foo/misc/boost/boost/spirit/home/classic/error_handling/exceptions.hpp +@@ -101,7 +101,7 @@ + + ////////////////////////////////// + template +- inline void ++ [[noreturn]] inline void + throw_(IteratorT where, ErrorDescrT descriptor) + { + boost::throw_exception(