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.
This commit is contained in:
PatTheMav 2023-04-06 01:11:58 +02:00 committed by Ryan Foster
parent 5a7b95cd8c
commit 343055c889

View file

@ -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);
}