diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-11 21:50:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-12 14:05:08 +0200 |
commit | b4eda68181eb422f4e58e4dccd93b1d9165afff8 (patch) | |
tree | ff1cd3bc21756dcb256c14c7e2e4f03dfb18713f /external | |
parent | 642e1809eb59872e6ca02e1bc8fb5dd897c63212 (diff) |
add noreturn to boost::spirit::throw_
Change-Id: Iac1d998a408d756f50f7c18944f4e1f8afef2e83
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167523
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'external')
-rw-r--r-- | external/boost/UnpackedTarball_boost.mk | 2 | ||||
-rw-r--r-- | external/boost/boost.spirit.noreturn.patch | 11 |
2 files changed, 13 insertions, 0 deletions
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 <typename ErrorDescrT, typename IteratorT> +- inline void ++ [[noreturn]] inline void + throw_(IteratorT where, ErrorDescrT descriptor) + { + boost::throw_exception( |