Fix unused var warning when not building on linux.

This commit is contained in:
Guillaume Friloux 2014-05-30 09:25:33 +02:00
parent 6f1f49b4f6
commit 3ab1b8afd8
1 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,7 @@ eina_sched_prio_drop(void)
{ {
#ifdef EFL_HAVE_POSIX_THREADS #ifdef EFL_HAVE_POSIX_THREADS
struct sched_param param; struct sched_param param;
int pol, prio, ret; int pol, ret;
pthread_t pthread_id; pthread_t pthread_id;
pthread_id = pthread_self(); pthread_id = pthread_self();
@ -76,6 +76,7 @@ eina_sched_prio_drop(void)
# ifdef __linux__ # ifdef __linux__
else else
{ {
int prio;
errno = 0; errno = 0;
prio = getpriority(PRIO_PROCESS, 0); prio = getpriority(PRIO_PROCESS, 0);
if (errno == 0) if (errno == 0)