Clear up gcc warnings.

This commit is contained in:
Andrew Johnson
2006-11-28 21:23:25 +00:00
parent 54ab39d0cf
commit 4a98bdd599
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ epicsShareFunc void epicsShareAPI epicsThreadSuspendSelf(void);
epicsShareFunc void epicsShareAPI epicsThreadResume(epicsThreadId id);
epicsShareFunc unsigned int epicsShareAPI epicsThreadGetPriority(
epicsThreadId id);
epicsShareFunc unsigned int epicsShareAPI epicsThreadGetPrioritySelf();
epicsShareFunc unsigned int epicsShareAPI epicsThreadGetPrioritySelf(void);
epicsShareFunc void epicsShareAPI epicsThreadSetPriority(
epicsThreadId id,unsigned int priority);
epicsShareFunc epicsThreadBooleanStatus epicsShareAPI
+4 -2
View File
@@ -147,6 +147,7 @@ static void myAtExit(void)
pthread_key_delete(getpthreadInfo);
}
#if defined (_POSIX_THREAD_PRIORITY_SCHEDULING)
static int getOssPriorityValue(epicsThreadOSD *pthreadInfo)
{
double maxPriority,minPriority,slope,oss;
@@ -159,6 +160,7 @@ static int getOssPriorityValue(epicsThreadOSD *pthreadInfo)
oss = (double)pthreadInfo->osiPriority * slope + minPriority;
return((int)oss);
}
#endif /* _POSIX_THREAD_PRIORITY_SCHEDULING */
static void setSchedulingPolicy(epicsThreadOSD *pthreadInfo,int policy)
{
#if defined (_POSIX_THREAD_PRIORITY_SCHEDULING)
@@ -433,13 +435,13 @@ epicsThreadId epicsThreadCreate(const char *name,
/*
* Cleanup routine for threads not created by epicsThreadCreate().
*/
static void nonEPICSthreadCleanup(void *arg)
/* static void nonEPICSthreadCleanup(void *arg)
{
epicsThreadOSD *pthreadInfo = (epicsThreadOSD *)arg;
free(pthreadInfo->name);
free(pthreadInfo);
}
} */
/*
* Create dummy context for threads not created by epicsThreadCreate().