From 6d100b0fefe771c3a62320430c4bc6dc98ac74ae Mon Sep 17 00:00:00 2001 From: Ken Matsui <26405363+ken-matsui@users.noreply.github.com> Date: Wed, 22 Jan 2025 21:34:06 -0500 Subject: [PATCH] TermColor: add unreachable for shouldColor (#1118) --- src/TermColor.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TermColor.cc b/src/TermColor.cc index 2df87bc13..f23481e4b 100644 --- a/src/TermColor.cc +++ b/src/TermColor.cc @@ -96,6 +96,7 @@ shouldColor(const std::ostream& os) noexcept { case ColorMode::Never: return false; } + __builtin_unreachable(); } bool shouldColorStdout() noexcept {