Skip to content

Commit

Permalink
Fix C4715
Browse files Browse the repository at this point in the history
```
warning C4715: 'xcmpSuffix<int>': not all control paths return a value
```
  • Loading branch information
fjeremic committed Jun 7, 2021
1 parent fd52af9 commit 198114e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fvtest/compilertriltest/SelectTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ static const char* xcmpSuffix(Comparison cmp) {
return "gt";
case Comparison::le:
return "le";
default:
return "";
}
}

Expand All @@ -110,6 +112,8 @@ static int32_t xcmpOracle(Comparison cmp, CompareType c1, CompareType c2) {
return c1 > c2;
case Comparison::le:
return c1 <= c2;
default:
return 0;
}
}

Expand Down

0 comments on commit 198114e

Please sign in to comment.