On Mon, Jan 05, 2026 at 10:11:52PM +0100, Stephan Witt via lyx-devel wrote: > Hi all, > > with Apple clang version 17.0.0 I see hundreds of warnings like these: > > „Implicit conversion loses integer precision: 'size_type' (aka 'unsigned > long') to 'unsigned int'“ > > or > > „Implicit conversion loses integer precision: 'size_type' (aka 'unsigned > long') to 'int'" > > I think there are many places to improve the code and use the appropriate > types for local variables, method parameters or loop indices. > > The attached small example patch reduces the number of warnings from 280 to > 269. > > Of course there are easy fixes and more difficult ones. But I think we should > be more careful with these things. > > Is nobody else seeing this? No source checker complaints here? > > I can see the warnings with the cmake+Xcode build path. With autotools I > don’t see them.
Not sure if related but we have a thread where we discussed warnings from -Wimplicit-int-float-conversion: https://www.mail-archive.com/search?l=mid&q=dy5v4r6k5ifynwg46bbcp4rtcd5if7jl5wlnamqoicotorlvfe%405vep6fwux6yj In my opinion, if they make sense, please go ahead and address them. If I don't address them, it's just because I'm not confident it's the right thing to do. Scott
signature.asc
Description: PGP signature
-- lyx-devel mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-devel
