On Thu, Jul 31, 2025 at 11:44:16AM +0200, Pavel Sanda wrote: > 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)).
Indeed strange. I don't see this on my system with the same flag. I have GCC version 15.0.1. Scott
signature.asc
Description: PGP signature
-- lyx-devel mailing list lyx-devel@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-devel