From 3ddaa60de95ffad7e96b2b436fb87c237689f9e9 Mon Sep 17 00:00:00 2001 From: Brenton Bostick Date: Tue, 29 Nov 2022 11:55:33 -0500 Subject: [PATCH] prevent: warning: unused variable 'gotViaProc' (#1797) --- osdep/Binder.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/osdep/Binder.hpp b/osdep/Binder.hpp index 4e08f4539..666d63670 100644 --- a/osdep/Binder.hpp +++ b/osdep/Binder.hpp @@ -313,6 +313,13 @@ class Binder { #else const bool gotViaProc = false; #endif + + // + // prevent: + // warning: unused variable 'gotViaProc' + // + (void)gotViaProc; + #if ! (defined(ZT_SDK) || defined(__ANDROID__)) // getifaddrs() freeifaddrs() not available on Android if (! gotViaProc) { struct ifaddrs* ifatbl = (struct ifaddrs*)0;