Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2016-04

c-blocks odd hints

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dmitry Boyarintsev

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

Reply by email