From 06d43af6f4985f66a007c2b02d7719fda002cc2d Mon Sep 17 00:00:00 2001 From: ProjectPatatoe Date: Sun, 27 Mar 2022 15:26:13 -0700 Subject: BUILD(client,server): Fix warning for always true assert Received compiler warning of an assert that is always true. The assert checked if variable is negative but it is an unsigned variable. Just check if positive. --- src/MumbleProtocol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/MumbleProtocol.cpp b/src/MumbleProtocol.cpp index 34aa88e72..1710f7f05 100644 --- a/src/MumbleProtocol.cpp +++ b/src/MumbleProtocol.cpp @@ -335,7 +335,7 @@ namespace Protocol { m_audioMessage.Clear(); static_assert(AudioContext::BEGIN == 0, "AudioContext::BEGIN is not zero (breaks assumption)"); - static_assert(AudioContext::END >= 0, "AudioContext::END is negative (breaks assumption)"); + static_assert(AudioContext::END > 0, "AudioContext::END is not positive (breaks assumption)"); m_preEncodedContext.resize(AudioContext::END); // Pre-encode the expected voice audio contexts. -- cgit v1.2.3