From 0028e314e460f55c6e31397b2afb5a9d499b31ba Mon Sep 17 00:00:00 2001 From: Misa Date: Tue, 31 Aug 2021 23:12:38 -0700 Subject: [PATCH] Suppress unused `i` warning if `NUM_BACKENDS` is 0 Else this warning would pop up if not compiling an OFFICIAL_BUILD. --- desktop_version/src/Network.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop_version/src/Network.c b/desktop_version/src/Network.c index dc8a0112..d6948140 100644 --- a/desktop_version/src/Network.c +++ b/desktop_version/src/Network.c @@ -77,6 +77,8 @@ int NETWORK_init(void) backends[i].IsInit = backends[i].Init(); any |= backends[i].IsInit; } + #else + UNUSED(i); #endif return any; }