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

Silence -Wswitch-enum from bison generated file #4886

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

ChrisDodd
Copy link
Contributor

p4parsers.ypp generates a .hpp file that contains an empty switch statement with just a default case when generating the user destructor. This switch prevents builds with -Werror=switch-enum. Silence this warning if the flag is present.

p4parsers.ypp generates a .hpp file that contains an empty switch
statement with just a default case when generating the user destructor.
This switch prevents builds with -Werror=switch-enum. Silence this
warning if the flag is present.

Signed-off-by: Chris Dodd <[email protected]>
@fruffy fruffy added run-ubuntu18 Use this tag to trigger a Ubuntu-18 CI run. core Topics concerning the core segments of the compiler (frontend, midend, parser) labels Aug 27, 2024
@ChrisDodd ChrisDodd added this pull request to the merge queue Sep 3, 2024
Merged via the queue into p4lang:main with commit f7c29aa Sep 3, 2024
20 checks passed
@ChrisDodd ChrisDodd deleted the cdodd-bisonwarn branch September 3, 2024 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Topics concerning the core segments of the compiler (frontend, midend, parser) run-ubuntu18 Use this tag to trigger a Ubuntu-18 CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants