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

Problematic flags for the Clang compiler cause errors from warnings #106

Open
paspro opened this issue Apr 25, 2023 · 1 comment
Open

Problematic flags for the Clang compiler cause errors from warnings #106

paspro opened this issue Apr 25, 2023 · 1 comment

Comments

@paspro
Copy link
Contributor

paspro commented Apr 25, 2023

For the Clang compiler to work properly (at least the latest version), one needs to modify file cs_auto_flags.sh, line 400 which reads:

cflags_default="-funsigned-char -Wall -Wshadow -Wpointer-arith -Wmissing-prototypes -Wuninitialized -Wunused"

and change it to:

cflags_default="-funsigned-char -Wall -Wshadow -Wpointer-arith -Wmissing-prototypes -Wuninitialized -Wunused -Wno-incompatible-function-pointer-types -Wno-implicit-int"

in order to avoid warnings of "incompatible function pointer types" and "implicit integer" to be marked as errors. Otherwise, one should update the source code to fix these warnings.

YvanFournier added a commit that referenced this issue Apr 25, 2023
This fixes GitHub issue #106.
YvanFournier added a commit that referenced this issue Apr 25, 2023
Cherry picked from commit af8a981 on master.

This fixes GitHub issue #106.
@YvanFournier
Copy link
Contributor

YvanFournier commented Apr 25, 2023

Hello,

I can't reproduce this with Clang 11. I'll try on another machine with Clang 15 (I prefer updating the source code to changing the warnings).

Note: the automatic commit reference actually references the previous issue. Sorry for the typo.

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

No branches or pull requests

2 participants