From c647c8d72aa021b05cbf663a560bb8f9587b8b74 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Tue, 25 Nov 2014 22:15:56 -0800 Subject: [PATCH] client: fix compile warnings and errors. --- client/hostinfo_unix.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/hostinfo_unix.cpp b/client/hostinfo_unix.cpp index b4a53c7610..bbac65cc84 100644 --- a/client/hostinfo_unix.cpp +++ b/client/hostinfo_unix.cpp @@ -1260,9 +1260,6 @@ int HOST_INFO::get_cpu_info() { #if LINUX_LIKE_SYSTEM parse_cpuinfo_linux(*this); #elif defined( __APPLE__) - int mib[2]; - size_t len; - get_cpu_info_mac(*this); #elif defined(__EMX__) CPU_INFO_t cpuInfo; @@ -1366,6 +1363,9 @@ int HOST_INFO::get_cpu_count() { p_ncpus = sysconf(_SC_NPROCESSORS_ONLN); #elif defined(HAVE_SYS_SYSCTL_H) && defined(CTL_HW) && defined(HW_NCPU) // Get number of CPUs + int mib[2]; + size_t len; + mib[0] = CTL_HW; mib[1] = HW_NCPU; len = sizeof(p_ncpus);