Skip to content

Commit 7c1a988

Browse files
committed
[libc][Obvious] Add a default clause to RoundingModeUtils.h to suppress gcc
warning.
1 parent 44003d7 commit 7c1a988

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libc/utils/testutils/RoundingModeUtils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ int get_fe_rounding(RoundingMode mode) {
2727
case RoundingMode::Nearest:
2828
return FE_TONEAREST;
2929
break;
30+
default:
31+
__builtin_unreachable();
3032
}
3133
}
3234

0 commit comments

Comments
 (0)