From b4eda68181eb422f4e58e4dccd93b1d9165afff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sat, 11 May 2024 21:50:12 +0100 Subject: [PATCH] add noreturn to boost::spirit::throw_ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iac1d998a408d756f50f7c18944f4e1f8afef2e83 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167523 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- external/boost/UnpackedTarball_boost.mk | 2 ++ external/boost/boost.spirit.noreturn.patch | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 external/boost/boost.spirit.noreturn.patch 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(