Do not output a warning about a missing "return" in a function if the function

exit is unreachable.
This commit is contained in:
Kugel Fuhr
2025-07-17 16:12:48 +02:00
parent ed54e9b168
commit 6d45a94127
6 changed files with 17 additions and 14 deletions

View File

@@ -14,7 +14,7 @@ static int f2(void)
{
if (0) {
/* Unreachable */
a = 1;
a = 1;
} else {
a = 2;
}
@@ -37,7 +37,7 @@ static int f4(void)
a = 2;
} else {
/* Unreachable */
a = 1;
a = 1;
}
return a;
}