On Thu, Jul 31, 2025 at 02:37:06AM +0000, test...@tester.lyx.org wrote:
>   CXX      Trans.o
> Trans.cpp: In member function 'const lyx::docstring 
> lyx::Trans::process(lyx::char_type, lyx::TransManager&)':
> Trans.cpp:365:40: error: '((const 
> __gnu_cxx::__alloc_traits<std::allocator<wchar_t>, 
> wchar_t>::value_type*)((char*)&t + offsetof(const std::__cxx11::docstring, 
> std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, 
> std::allocator<wchar_t> >::<unnamed>)))[1]' may be used uninitialized 
> [-Werror=maybe-uninitialized]
>   365 |         return k.deadkey(c, 
> kmod_list_[static_cast<tex_accent>(t[1])]);
>       |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Trans.cpp:357:25: note: 't' declared here
>   357 |         docstring const t = match(c);
>       |                         ^


I do not know what the code is supposed to do, but clearly we don't test for 
the combination of
t.empty() && c = 0

Can such case appear? If so should we return docstring()?

Pavel
(Not sure why we are hit by this right now (maybe gcc was updated on the 
testing machine)).
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to