diff --git a/src/statement.c b/src/statement.c index 38cf1fd2f669..2718f07274c7 100644 --- a/src/statement.c +++ b/src/statement.c @@ -825,7 +825,7 @@ int CompoundStatement::blockExit(bool mustNotThrow) else { const char *gototype = s->isCaseStatement() ? "case" : "default"; - s->error("switch case fallthrough - use 'goto %s;' if intended", gototype); + s->warning("switch case fallthrough - use 'goto %s;' if intended", gototype); } } } diff --git a/test/fail_compilation/fail11653.d b/test/fail_compilation/fail11653.d index f89a7bfce5d8..48c477f79473 100644 --- a/test/fail_compilation/fail11653.d +++ b/test/fail_compilation/fail11653.d @@ -2,7 +2,7 @@ /* TEST_OUTPUT: --- -fail_compilation/fail11653.d(18): Error: switch case fallthrough - use 'goto case;' if intended +fail_compilation/fail11653.d(18): Warning: switch case fallthrough - use 'goto case;' if intended --- */