AngusJohnson / Image32

An extensive 2D graphics library written in Delphi Pascal
Boost Software License 1.0
137 stars 31 forks source link

Fix hints/warnings #81

Closed ahausladen closed 3 months ago

ahausladen commented 3 months ago

This pull request fixes hints and warnings for the Delphi compilers.

It also fixes a compile error in Img32.Panels where PtInRect became ambiguous between Img32.Vector and WinApi.Windows.

For two warnings in Delphi 7-XE5 there is now a $IF because they emit a "variable not initialized" warning that is bogus, but those Delphi versions have a bug in the flow analyses if there are "continue" statements.

Delpihi 7 still emits a lot more warnings, but they are all compiler bugs. There isn't even a "continue", "break", "exit", "try/finally" near and especially not between the variable assignment and the its usage. But with this pull request Delphi 2009 and newer are warning/hint-free.