tmewett / BrogueCE

Brogue: Community Edition - a community-lead fork of the much-loved minimalist roguelike game
https://sites.google.com/site/broguegame/
GNU Affero General Public License v3.0
1.03k stars 109 forks source link

Fix clang error with incompatible function pointer types #706

Closed Biswa96 closed 3 months ago

Biswa96 commented 3 months ago
This fixes the following compiler error.

src/platform/curses-platform.c:226:5: error: incompatible function pointer types initializing
'char ()(short, PauseBehavior)' (aka 'char ()(short, struct PauseBehavior)')
with an expression of type 'char (short)' [-Wincompatible-function-pointer-types]
curses_pauseForMilliseconds,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
tmewett commented 3 months ago

Brilliant, went to look at this and didn't realise it had already been done! Thanks