[Lazarus] Errors in win32winapi.inc and elsewhere spotted by compiler

Dmitry Boyarintsev skalogryz.lists at gmail.com
Tue Mar 24 21:40:45 CET 2015


On Tue, Mar 24, 2015 at 4:36 PM, Dmitry Boyarintsev <
skalogryz.lists at gmail.com> wrote:

> hmm... or is DrawEdge declaration wrong having ARect be passed as "const"
> rather than "var"?
>
> it's var!
function DrawEdge(hdc: HDC; var qrc: TRect; edge: UINT; grfFlags: UINT):
BOOL; external 'user32' name 'DrawEdge';

Imho, the compiler should be adjusted for these cases not to give a note.
Since number of iterations is important in this case, not the iterator
value.

thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150324/287aaca9/attachment-0003.html>


More information about the Lazarus mailing list