[libc-commits] [libc] [libc] Fix gcc warnings. (PR #240958)

Pavel Labath via libc-commits libc-commits at lists.llvm.org
Wed Nov 11 00:03:35 PST 2026


================
@@ -212,7 +212,7 @@ LIBC_INLINE MemcmpReturnType cmp_neq_uint64_t(uint64_t a, uint64_t b) {
 // Loads bytes from memory (possibly unaligned) and materializes them as
 // type.
 template <typename T> LIBC_INLINE T load_unaligned(CPtr ptr) {
-  T out;
+  T out{};
----------------
labath wrote:

I'd like to know why this needed to change. It looks like it might be hiding a problem somewhere else..

https://github.com/llvm/llvm-project/pull/240958


More information about the libc-commits mailing list