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

add compiler flag -Wno-error=incompatible-function-pointer-types #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidfdriscoll
Copy link

On Apple M1, macOS Sonoma 14.3.1, Apple clang version 15.0.0

`CFLAGS='-std=gnu89 -Wno-return-type -Wno-implicit-function-declaration' make LOADLIBES='-ll' failed with the following error message:

genwd.c:49:48: error: incompatible function pointer types passing 'int (gk_word *, gk_word *)' to parameter of type 'int (* _Nonnull)(const void *, const void *)' [-Wincompatible-function-pointer-types]
        qsort(gkforms,formcnt,sizeof * gkforms,CompGkForms);    
                                               ^~~~~~~~~~~

Apparently the warning "incompatible function pointer types" was upgraded to a fatal error in Aug. 2022. This PR adds the compiler flag -Wno-error=incompatible-function-pointer-types that reverts the error to a warning.

Tested locally, project now builds and runs successfully.

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.

1 participant