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.

Stephan

Attachment: fix-int-conversion-warnings.patch
Description: Binary data

-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to