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

Call bison with -Wno-other #294

Merged
merged 1 commit into from
Oct 28, 2024
Merged

Conversation

dburgener
Copy link
Member

Bison in 3.8.2 added new warnings to catch m4 strings accidentally included in the generated code output. It had the unfortunate side effect of flagging grammars that include "m4_foo" style strings as identifiers in their grammar (which we do). Based on the thread, it looks like a fix was implemented on the Bison side, but as of three years later, no release has been made. Bison seems to possibly have maintainer inactivity: akimd/bison#103.

Since a fix for the false positive is not forthcoming, disable the warning. Unfortunately, I don't think a more granular disablement is available, but IMO false positive warnings are worse than false negatives.

Bison in 3.8.2 added new warnings to catch m4 strings accidentally included in the generated code output.  It had the unfortunate side effect of flagging grammars that include "m4_foo" style strings as identifiers in their grammar (which we do).  Based on the thread, it looks like a fix was implemented on the Bison side, but as of three years later, no release has been made.  Bison seems to possibly have maintainer inactivity: akimd/bison#103.

Since a fix for the false positive is not forthcoming, disable the
warning.  Unfortunately, I don't think a more granular disablement is
available, but IMO false positive warnings are worse than false
negatives.
@dburgener dburgener merged commit e8c5752 into SELinuxProject:main Oct 28, 2024
3 checks passed
@dburgener dburgener deleted the bison-warnings branch October 28, 2024 16: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.

1 participant