[libc-commits] [libc] [libc] Fix erroenous warning on GCC (PR #101520)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Thu Aug 1 10:04:24 PDT 2024
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/101520
None
>From a6c57258ca33b3aaabd14ae4d2fda5b58fe1d7b7 Mon Sep 17 00:00:00 2001
From: Joseph Huber <huberjn at outlook.com>
Date: Thu, 1 Aug 2024 12:02:44 -0500
Subject: [PATCH] [libc] Fix erroenous warning on GCC
---
libc/src/stdio/printf_core/writer.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/libc/src/stdio/printf_core/writer.h b/libc/src/stdio/printf_core/writer.h
index 7dfdea2c5bc40..5526a478ea620 100644
--- a/libc/src/stdio/printf_core/writer.h
+++ b/libc/src/stdio/printf_core/writer.h
@@ -100,6 +100,7 @@ struct WriteBuffer {
case WriteMode::RESIZE_AND_FILL_BUFF:
return resize_and_write(new_str);
}
+ __builtin_unreachable();
}
};
More information about the libc-commits
mailing list