Skip to content

gcc: do not warn about unreachable switches - #2781

Open
privat wants to merge 1 commit into
nitlang:masterfrom
privat:gcc-silent-unreachable
Open

gcc: do not warn about unreachable switches#2781
privat wants to merge 1 commit into
nitlang:masterfrom
privat:gcc-silent-unreachable

Conversation

@privat

Copy link
Copy Markdown
Member

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.
Closenitlang#2780
Signed-off-by: Jean Privat <jean@pryen.org>
@privat

Copy link
Copy Markdown
MemberAuthor

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

@privat

Copy link
Copy Markdown
MemberAuthor

Maybe we should just disable warnings in gcc?

@privatprivat mentioned this pull request Sep 26, 2019
Sign up for freeto 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

@privat@Louis-Vincent