From: Ken Rice Date: Thu, 15 Oct 2015 18:31:12 +0000 (-0500) Subject: FS-8350 #resolve return value of SetPriorityClass() so windows build does not complai... X-Git-Tag: v1.6.4~1^2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b8ff860830c01602792acd1aae2ccc548945ea6;p=thirdparty%2Ffreeswitch.git FS-8350 #resolve return value of SetPriorityClass() so windows build does not complain about warnings as errors on switch_core.c in set_realtime_priority() this also addresses as similar condition in set_low_priority() where if windows it always returns 0 --- diff --git a/src/switch_core.c b/src/switch_core.c index 7e79a92f42..dfef15482c 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -928,7 +928,7 @@ SWITCH_DECLARE(int32_t) switch_core_set_process_privileges(void) SWITCH_DECLARE(int32_t) set_low_priority(void) { #ifdef WIN32 - SetPriorityClass(GetCurrentProcess(), BELOW_NORMAL_PRIORITY_CLASS); + return SetPriorityClass(GetCurrentProcess(), BELOW_NORMAL_PRIORITY_CLASS); #else #if defined(USE_SCHED_SETSCHEDULER) && ! defined(SOLARIS_PRIVILEGES) /* @@ -964,7 +964,7 @@ SWITCH_DECLARE(int32_t) set_low_priority(void) SWITCH_DECLARE(int32_t) set_realtime_priority(void) { #ifdef WIN32 - SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); + return SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); #else #ifdef USE_SCHED_SETSCHEDULER /*