Did you know? 10.2 Tokyo has introduced 3 new warnings for Delphi compilers:…
Posted by jpluimers on 2019/02/27
Seems I forgot to push the “publish” button on this 2 years ago (:
Did you know?
10.2 Tokyo has introduced 3 new warnings for Delphi compilers:
Implicit integer cast with potential data loss from ‘<from>’ to ‘<to>’ W1071 IMPLICIT_INTEGER_CAST_LOSSDefault: Off Implicit conversion may lose significant digits from ‘<from>’ to ‘<to>’ W1072 IMPLICIT_CONVERSION_LOSSDefault: Off Combining signed type and unsigned 64-bit type – treated as an unsigned type W1073 COMBINING_SIGNED_UNSIGNED64Default: On
Source: [WayBack] Did you know? 10.2 Tokyo has introduced 3 new warnings for Delphi compilers:…
Comment:
Jeroen Wiert Pluimers: Time to update marc.durdin.net – Delphi XE2’s hidden hints and warnings options | Marc Durdin’s Blog (:+Marc Durdin do you still do Delphi?
they were initially documented in less detail than the above table, and it keeps surprising me that you need to read employee blogs instead of the docwiki to keep current: [WayBack] New Warnings, Illegal Casts, and other Delphi compiler changes in 10.2 Tokyo.
Since then, documentation has improved to this:
Warning Identifier IMPLICIT_INTEGER_CAST_LOSSW1071 IMPLICIT_CONVERSION_LOSSW1072 COMBINING_SIGNED_UNSIGNED64W1073
- [Archive.is] W1071 Implicit integer cast with potential data loss from ‘%s’ to ‘%s’ (Delphi) – RAD Studio
This message indicates that implicit integer cast from signed type to unsigned type, or vice versa, may not represent the original value correctly.
- [Archive.is] W1072 Implicit conversion may lose significant digits from ‘%s’ to ‘%s’ (Delphi) – RAD Studio
This message indicates that implicit conversion from wide integral type to narrow type, may not represent the original value correctly.
- [Archive.is] W1073 Combining signed type and unsigned 64-bit type – treated as an unsigned type (Delphi) – RAD Studio
This message indicates that both signed type and 64-bit unsigned type are used for +, -, *, “div” and “mod” binary operators.
–jeroen






Leave a comment