[clang++] Unnecessary warning "non-void function does not return a value in all control paths" #111509
Labels
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
false-positive
Warning fires when it should not
I have the following snippet:
I compile it with
clang++-18
:Variable
matched
is effectively constant and there are no paths that "do not return a value".The expected behavior is such that there should be no such warning.
The text was updated successfully, but these errors were encountered: