From 343055c8892eb85c56cc10c73fa9b0b579f7d3f9 Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Thu, 6 Apr 2023 01:11:58 +0200 Subject: [PATCH] UI: Wrap unreachable code in comment to fix clang warnings The branch is never taken and the code acts as documentation for a (possible) future use case. According to YAGNI it could be removed entirely, wrapping it in a comment is the less destructive approach. --- UI/window-basic-main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 514ebfade..75aad426f 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -8370,8 +8370,10 @@ void OBSBasic::GetConfigFPS(uint32_t &num, uint32_t &den) const GetFPSInteger(num, den); else if (type == 2) //"Fraction" GetFPSFraction(num, den); - else if (false) //"Nanoseconds", currently not implemented - GetFPSNanoseconds(num, den); + /* + * else if (false) //"Nanoseconds", currently not implemented + * GetFPSNanoseconds(num, den); + */ else GetFPSCommon(num, den); }