@@ -709,10 +709,10 @@ def err_thread_unsupported : Error<
709709// FIXME: Combine fallout warnings to just one warning.
710710def warn_maybe_falloff_nonvoid_function : Warning<
711711 "non-void function does not return a value in all control paths">,
712- InGroup<ReturnType>;
712+ InGroup<ReturnType>, DefaultError ;
713713def warn_falloff_nonvoid_function : Warning<
714714 "non-void function does not return a value">,
715- InGroup<ReturnType>;
715+ InGroup<ReturnType>, DefaultError ;
716716def warn_const_attr_with_pure_attr : Warning<
717717 "'const' attribute imposes more restrictions; 'pure' attribute ignored">,
718718 InGroup<IgnoredAttributes>;
@@ -726,10 +726,10 @@ def err_falloff_nonvoid_block : Error<
726726 "non-void block does not return a value">;
727727def warn_maybe_falloff_nonvoid_coroutine : Warning<
728728 "non-void coroutine does not return a value in all control paths">,
729- InGroup<ReturnType>;
729+ InGroup<ReturnType>, DefaultError ;
730730def warn_falloff_nonvoid_coroutine : Warning<
731731 "non-void coroutine does not return a value">,
732- InGroup<ReturnType>;
732+ InGroup<ReturnType>, DefaultError ;
733733def warn_suggest_noreturn_function : Warning<
734734 "%select{function|method}0 %1 could be declared with attribute 'noreturn'">,
735735 InGroup<MissingNoreturn>, DefaultIgnore;
@@ -8365,10 +8365,10 @@ let CategoryName = "Lambda Issue" in {
83658365 "lambda declared 'noreturn' should not return">;
83668366 def warn_maybe_falloff_nonvoid_lambda : Warning<
83678367 "non-void lambda does not return a value in all control paths">,
8368- InGroup<ReturnType>;
8368+ InGroup<ReturnType>, DefaultError ;
83698369 def warn_falloff_nonvoid_lambda : Warning<
83708370 "non-void lambda does not return a value">,
8371- InGroup<ReturnType>;
8371+ InGroup<ReturnType>, DefaultError ;
83728372 def err_access_lambda_capture : Error<
83738373 // The ERRORs represent other special members that aren't constructors, in
83748374 // hopes that someone will bother noticing and reporting if they appear
0 commit comments