office-gobmx/external/libnumbertext
Stephan Bergmann ad6ba4a3a6 external/libnumbertext: Silence -Werror,-Wdeprecated-declarations
...when building against LLVM 18 trunk libc++,

> In file included from Numbertext.cxx:6:
> ~/llvm/inst/bin/../include/c++/v1/locale:3772:1: error: 'wstring_convert<std::codecvt_utf8<wchar_t>>' is deprecated [-Werror,-Wdeprecated-declarations]
>  3772 | wstring_convert<_Codecvt, _Elem, _WideAlloc, _ByteAlloc>::
>       | ^
> ~/llvm/inst/bin/../include/c++/v1/locale:3649:17: note: in instantiation of member function 'std::wstring_convert<std::codecvt_utf8<wchar_t>>::to_bytes' requested here
>  3649 |         {return to_bytes(__wstr.data(), __wstr.data() + __wstr.size());}
>       |                 ^
> Numbertext.cxx:164:22: note: in instantiation of member function 'std::wstring_convert<std::codecvt_utf8<wchar_t>>::to_bytes' requested here
>   164 |     return converter.to_bytes( s );
>       |                      ^
> ~/llvm/inst/bin/../include/c++/v1/locale:3591:28: note: 'wstring_convert<std::codecvt_utf8<wchar_t>>' has been explicitly marked deprecated here
>  3591 | class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 wstring_convert
>       |                            ^
> ~/llvm/inst/bin/../include/c++/v1/__config:942:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
>   942 | #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
>       |                                         ^
> ~/llvm/inst/bin/../include/c++/v1/__config:915:49: note: expanded from macro '_LIBCPP_DEPRECATED'
>   915 | #      define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
>       |                                                 ^

(The warning is apparently only emitted late during compilation when
instantiating template code, so extending the existing `#pragma GCC diagnostic
push/pop` area did not work, and the `#pragma GCC diagnostic ignored` rather had
to be enabled all through to the end of the TU.)

Change-Id: Iffc1c468426407e3252724d18f358b9923f7f733
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160437
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-12-08 07:31:54 +01:00
..
deprecated.patch.0 external/libnumbertext: Silence -Werror,-Wdeprecated-declarations 2023-12-08 07:31:54 +01:00
ExternalPackage_numbertext.mk tdf#115007 tdf#148672 bump libnumbertext 1.0.11 2022-11-14 09:26:20 +01:00
ExternalProject_libnumbertext.mk Remove support for AIX 2023-01-27 07:28:16 +00:00
Makefile tdf#117171 support localized number name numbering styles 2018-05-03 11:42:20 +02:00
Module_libnumbertext.mk Drop configurability of libnumbertext use 2020-06-11 16:23:52 +02:00
MSVCNonBMPBug.patch1 tdf#133589 Numbertext: Use Win32API to avoid std::codecvt_utf8 bug 2020-06-18 17:44:49 +02:00
README tdf#117171 support localized number name numbering styles 2018-05-03 11:42:20 +02:00
StaticLibrary_libnumbertext.mk disable warnings in external libs 2019-05-24 13:46:03 +02:00
UnpackedTarball_libnumbertext.mk tdf#115007 tdf#148672 bump libnumbertext 1.0.11 2022-11-14 09:26:20 +01:00
WinUnicodePath.patch1 Use Unicode paths on Windows in libnumbertext 2021-01-01 17:29:42 +01:00

Number to Number Name Conversion Library

It is hosted at: [https://github.com/Numbertext/libnumbertext]