paleolimbot opened a new issue, #1705:
URL: https://github.com/apache/arrow-adbc/issues/1705
### What happened?
We have a note from CRAN that fmt is apparently misusing character traits
(or maybe we are instantiating the template) in very new versions of clang.
```
In file included from
/usr/local/clang18/bin/../include/c++/v1/string_view:213:
/usr/local/clang18/bin/../include/c++/v1/__fwd/string_view.h:22:41: warning:
'char_traits<fmt::detail::char8_type>' is deprecated: char_traits<T> for T not
equal to char, wchar_t, char8_t, char16_t or char32_t is non-standard and is
provided for a temporary period. It will be removed in LLVM 19, so please
migrate off of it. [-Wdeprecated-declarations]
22 | template <class _CharT, class _Traits = char_traits<_CharT> >
| ^
../src/c/vendor/fmt/include/fmt/core.h:361:26: note: in instantiation of
default argument for 'basic_string_view<fmt::detail::char8_type>' required here
361 | template <typename Char> using std_string_view =
std::basic_string_view<Char>;
| ^~~~~
../src/c/vendor/fmt/include/fmt/core.h:452:50: note: in instantiation of
template type alias 'std_string_view' requested here
452 | S,
detail::std_string_view<Char>>::value)>
| ^
../src/c/vendor/fmt/include/fmt/format.h:737:57: note: in instantiation of
template class 'fmt::basic_string_view<fmt::detail::char8_type>' requested here
737 | inline auto compute_width(basic_string_view<char8_type> s) -> size_t
{
| ^
/usr/local/clang18/bin/../include/c++/v1/__string/char_traits.h:81:8: note:
'char_traits<fmt::detail::char8_type>' has been explicitly marked deprecated
here
81 | struct _LIBCPP_DEPRECATED_(
| ^
/usr/local/clang18/bin/../include/c++/v1/__config:975:53: note: expanded
from macro '_LIBCPP_DEPRECATED_'
975 | # define _LIBCPP_DEPRECATED_(m)
__attribute__((__deprecated__(m)))
| ^
1 warning generated.
```
(Full details:
https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-clang/adbcpostgresql-00install.html
)
### How can we reproduce the bug?
`cd r/adbcpostgresql && R CMD INSTALL .` on a very new (17 or 18 I think)
clang
### Environment/Setup
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]