Skip to content

Commit 8743f30

Browse files
author
Igor S. Gerasimov
committed
err_falloff_nonvoid should be Error
1 parent adecfd4 commit 8743f30

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -717,10 +717,9 @@ def warn_falloff_nonvoid : Warning<
717717
"non-void %select{function|block|lambda|coroutine}0 "
718718
"does not return a value%select{| in all control paths}1">,
719719
InGroup<ReturnType>;
720-
def err_falloff_nonvoid : Warning<
720+
def err_falloff_nonvoid : Error<
721721
"non-void %select{function|block|lambda|coroutine}0 "
722-
"does not return a value%select{| in all control paths}1">,
723-
InGroup<ReturnType>;
722+
"does not return a value%select{| in all control paths}1">;
724723
def warn_const_attr_with_pure_attr : Warning<
725724
"'const' attribute imposes more restrictions; 'pure' attribute ignored">,
726725
InGroup<IgnoredAttributes>;

0 commit comments

Comments
 (0)