From ea63899c9aacb33b7ac563ae2b644e57d21b6ae5 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Mon, 4 Jul 2022 20:05:21 +0300 Subject: [PATCH] Mark unreachable code. --- module/PocoLib/Data.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/module/PocoLib/Data.cpp b/module/PocoLib/Data.cpp index b2476652..ca5976b7 100644 --- a/module/PocoLib/Data.cpp +++ b/module/PocoLib/Data.cpp @@ -491,10 +491,8 @@ LightObj SqDataSessionPool::GetSq() { return GteMySQLFromSession(session_impl); } - else - { - STHROWF("Unknown connector type {}", connector); - } + STHROWF("Unknown connector type {}", connector); + SQ_UNREACHABLE } // ------------------------------------------------------------------------------------------------