[fpc-devel] "Case statement does not handle all possible cases" Warning

Sven Barth pascaldragon at googlemail.com
Sun May 19 13:25:38 CEST 2019


J. Gareth Moreton <gareth at moreton-family.com> schrieb am So., 19. Mai 2019,
13:18:

> Regarding the C-style assignment operators, some of the packages that come
> with the compiler use them, and trying to build everything without the -Sc
> flag will result in errors.  Outside of that, the biggest one that stands
> out is LazUTF8.pas for Lazarus - for example: Result += (nx * ONEMASK) >>
> ((sizeof(PtrInt) - 1) * 8); - that should probably be changed to
> something a little more Pascal-like, if Inc(Result, (nx * ONEMASK) *shr* ((sizeof(PtrInt)
> - 1) * 8)); is acceptable.
>
The fpcdefs.inc is only used for the compiler.

And don't get me started about ">>". That one is going to annoy me enough
once I add support for nested specializations -.-

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190519/155f5033/attachment.html>


More information about the fpc-devel mailing list