[fpc-pascal] c-blocks odd hints

Dmitry Boyarintsev skalogryz.lists at gmail.com
Sun Apr 24 02:57:51 CEST 2016


Hello,

The compiler seems to generate odd hints:

Local absolutevar "FPC_BLOCK_SELF" is not used

Here's the code.

    if Assigned(gc.extendedGamepad) then
      gc.extendedGamepad.setValueChangedHandler(GamePadChange)
    else if Assigned(gc.gamepad) then  // <-- hint here
      gc.gamepad.setValueChangedHandler(GamePadChange);
    gc.setControllerPausedHandler(PauseHandler);  // <--hint here

Why?

PauseHandler and GamePadChange are procedures:
procedure GamePadChange(pad: GCGamePad; el: GCControllerElement);
procedure PauseHandler(gc: GCController);

thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160423/6210a1c2/attachment.html>


More information about the fpc-pascal mailing list