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

gcc: do not warn about unreachable switches #2781

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

Conversation

privat
Copy link
Member

@privat privat commented Aug 14, 2019

The C code is generated naively and we do not try to remove dead parts.
Thus silent C compiler warnings about unreachable things.

Close #2780

The C code is generated naively and we do not try to remove dead parts.
Thus silent C compiler warnings about unreachable things.

Close nitlang#2780

Signed-off-by: Jean Privat <[email protected]>
@privat
Copy link
Member Author

privat commented Aug 19, 2019

It seems that the mac version of gcc does not like the new option :(

@privat
Copy link
Member Author

privat commented Aug 22, 2019

Maybe we should just disable warnings in gcc?

@privat privat mentioned this pull request Sep 26, 2019
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.

Global compiler: unreachable code warning when using nullable in generic types
2 participants