aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos/gfx_osx.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-09-28 01:41:07 +1000
committerinmarket <andrewh@inmarket.com.au>2014-09-28 01:41:07 +1000
commit2776d00e82b85365efa38d0067b658fd2818ca41 (patch)
treec6d66f019c76fffe062195bb440041a336a0373d /src/gos/gfx_osx.c
parent0d35e6b6ae5eb8c44f7a35d0dac0fc3bcf41a130 (diff)
downloaduGFX-2776d00e82b85365efa38d0067b658fd2818ca41.tar.gz
uGFX-2776d00e82b85365efa38d0067b658fd2818ca41.tar.bz2
uGFX-2776d00e82b85365efa38d0067b658fd2818ca41.zip
GOS updates to fix compile warnings on linux
Diffstat (limited to 'src/gos/gfx_osx.c')
-rw-r--r--src/gos/gfx_osx.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gos/gfx_osx.c b/src/gos/gfx_osx.c
index 50b06530..f2e58f77 100644
--- a/src/gos/gfx_osx.c
+++ b/src/gos/gfx_osx.c
@@ -30,7 +30,7 @@ void get_ticks(mach_timespec_t *mts){
clock_get_time(cclock, mts);
mach_port_deallocate(mach_task_self(), cclock);
-
+
}
void _gosInit(void)
@@ -89,16 +89,19 @@ void gfxSleepMicroseconds(delaytime_t ms) {
systemticks_t gfxSystemTicks(void) {
//struct timespec ts;
//clock_gettime(CLOCK_MONOTONIC, &ts);
-
+
mach_timespec_t ts;
get_ticks(&ts);
-
-
+
+
return ts.tv_sec * 1000UL + ts.tv_nsec / 1000UL;
}
gfxThreadHandle gfxThreadCreate(void *stackarea, size_t stacksz, threadpriority_t prio, DECLARE_THREAD_FUNCTION((*fn),p), void *param) {
gfxThreadHandle th;
+ (void) stackarea;
+ (void) stacksz;
+ (void) prio;
// Implementing priority with pthreads is a rats nest that is also pthreads implementation dependent.
// Only some pthreads schedulers support it, some implementations use the operating system process priority mechanisms.