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>
This commit is contained in:
Caolán McNamara
2024-05-12 14:05:08 +02:00
parent 642e1809eb
commit b4eda68181
2 changed files with 13 additions and 0 deletions
+2
View File
@@ -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)))
+11
View File
@@ -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(