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

bool is a keyword in C23 #716

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

Conversation

mruprich
Copy link
Contributor

GCC15 has landed in Fedora Rawhide and 'bool' is a new keyword in C23 standard. I have added a condition around the typedef for bool so that with newer GCC, the build won't fail with following error:

wildtest.c:35:14: error: ‘bool’ cannot be defined via ‘typedef’
   35 | typedef char bool;
      |              ^~~~
wildtest.c:35:14: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
wildtest.c:35:1: warning: useless type name in empty declaration
   35 | typedef char bool;
      | ^~~~~~~

@mruprich
Copy link
Contributor Author

I see that all tests have passed here but I am also getting notifications from github about a failed MacOS test which I don't see listed here. The test runs roughly once per day judging from the notifications.

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