From 6356a9c88e04455186a9b6d683ace14dadb891b7 Mon Sep 17 00:00:00 2001 From: mtm Date: Fri, 23 May 2003 09:48:20 +0000 Subject: Make WARNS2 clean. The fixes mostly included: o removed unused variables o explicit inclusion of header files o prototypes for externally defined functions Approved by: re/blanket libthr --- lib/libthr/thread/thr_setschedparam.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/libthr/thread/thr_setschedparam.c') diff --git a/lib/libthr/thread/thr_setschedparam.c b/lib/libthr/thread/thr_setschedparam.c index 7746383..04786a7 100644 --- a/lib/libthr/thread/thr_setschedparam.c +++ b/lib/libthr/thread/thr_setschedparam.c @@ -42,7 +42,10 @@ int _pthread_setschedparam(pthread_t pthread, int policy, const struct sched_param *param) { - int old_prio, in_readyq = 0, ret = 0; + int old_prio, ret = 0; +#if 0 + int in_readyq = 0; +#endif if ((param == NULL) || (policy < SCHED_FIFO) || (policy > SCHED_RR)) return (EINVAL); -- cgit v1.1