Skip to content

Commit 033dbbe

Browse files
committed
[libc][NFC] Clean up stray ';' and default enum warning
Summary: Cleans up two warnings I get locally while building.
1 parent 3ec1f25 commit 033dbbe

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

libc/test/src/__support/FPUtil/fpbits_test.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,6 @@ template <typename T> constexpr auto make(Sign sign, FP fp) {
237237
return T::signaling_nan(sign);
238238
case FP::QUIET_NAN:
239239
return T::quiet_nan(sign);
240-
default:
241-
__builtin_unreachable();
242240
}
243241
}
244242

libc/utils/gpu/loader/Loader.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void *copy_argument_vector(int argc, char **argv, Allocator alloc) {
8585
// Ensure the vector is null terminated.
8686
reinterpret_cast<void **>(dev_argv)[argv_size] = nullptr;
8787
return dev_argv;
88-
};
88+
}
8989

9090
/// Copy the system's environment to GPU memory allocated using \p alloc.
9191
template <typename Allocator>
@@ -95,7 +95,7 @@ void *copy_environment(char **envp, Allocator alloc) {
9595
++envc;
9696

9797
return copy_argument_vector(envc, envp, alloc);
98-
};
98+
}
9999

100100
inline void handle_error(const char *msg) {
101101
fprintf(stderr, "%s\n", msg);

0 commit comments

Comments
 (0)