From 971996b397711016d47fe961890d7001338c6f23 Mon Sep 17 00:00:00 2001 From: wij Date: Tue, 14 Jan 2025 13:07:16 -0500 Subject: Fix #5354, change diagnostic definition error message and expect output in test (#6067) Co-authored-by: Yong He --- source/slang/slang-diagnostic-defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/slang/slang-diagnostic-defs.h b/source/slang/slang-diagnostic-defs.h index 821a895bc..1d09189cc 100644 --- a/source/slang/slang-diagnostic-defs.h +++ b/source/slang/slang-diagnostic-defs.h @@ -2060,7 +2060,7 @@ DIAGNOSTIC( DIAGNOSTIC(41000, Warning, unreachableCode, "unreachable code detected") DIAGNOSTIC(41001, Error, recursiveType, "type '$0' contains cyclic reference to itself.") -DIAGNOSTIC(41010, Warning, missingReturn, "control flow may reach end of non-'void' function") +DIAGNOSTIC(41010, Warning, missingReturn, "non-void function does not return in all cases") DIAGNOSTIC( 41011, Error, -- cgit v1.2.3