Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clang error with incompatible function pointer types #706

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

Biswa96
Copy link

@Biswa96 Biswa96 commented Aug 5, 2024

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,
^~~~~~~~~~~~~~~~~~~~~~~~~~~

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
Copy link
Owner

tmewett commented Aug 14, 2024

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

@tmewett tmewett changed the base branch from master to release August 14, 2024 11:29
@tmewett tmewett merged commit f39d502 into tmewett:release Aug 14, 2024
@Biswa96 Biswa96 deleted the fix-clang-compiler-error branch August 14, 2024 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants