You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ clang unreachable.c -Werror=return-type -c
unreachable.c:15:1: error: non-void function does not return a value in all control paths [-Werror,-Wreturn-type]
}
^
1 error generated.
Note GCC accepts the code:
gcc unreachable.c -Werror=return-type -c
The text was updated successfully, but these errors were encountered:
The following test-case is wrongly marked with
-Wreturn-type
:Note GCC accepts the code:
The text was updated successfully, but these errors were encountered: