From 2a7cfdfec7579b40468a79e74ad12bf367688601 Mon Sep 17 00:00:00 2001 From: sezero Date: Thu, 9 Aug 2018 21:50:10 +0300 Subject: [PATCH] warning fixes. --- glide3x/h3/glide3/src/gglide.c | 8 ++++---- glide3x/h5/glide3/src/gglide.c | 8 ++++---- glide3x/sst1/glide3/src/gglide.c | 3 ++- swlibs/newpci/pcilib/fxlinux.c | 2 +- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/glide3x/h3/glide3/src/gglide.c b/glide3x/h3/glide3/src/gglide.c index 87fff0e..89f0aec 100644 --- a/glide3x/h3/glide3/src/gglide.c +++ b/glide3x/h3/glide3/src/gglide.c @@ -1069,8 +1069,8 @@ GR_ENTRY(grBufferSwap, void, (FxU32 swapInterval)) if (swapInterval > 1) swapInterval = ((swapInterval - 1) << 1) | 1; /* Format for hw */ } - - while(_grBufferNumPending() > _GlideRoot.environment.swapPendingCount); + while(_grBufferNumPending() > _GlideRoot.environment.swapPendingCount) + ; /* Cycle the buffer indices */ { @@ -1190,8 +1190,8 @@ GR_ENTRY(grDRIBufferSwap, void, (FxU32 swapInterval)) if (swapInterval > 1) swapInterval = ((swapInterval - 1) << 1) | 1; /* Format for hw */ } - - while(_grBufferNumPending() > _GlideRoot.environment.swapPendingCount); + while(_grBufferNumPending() > _GlideRoot.environment.swapPendingCount) + ; #if USE_PACKET_FIFO { diff --git a/glide3x/h5/glide3/src/gglide.c b/glide3x/h5/glide3/src/gglide.c index 6fdd934..92acef6 100644 --- a/glide3x/h5/glide3/src/gglide.c +++ b/glide3x/h5/glide3/src/gglide.c @@ -2754,8 +2754,8 @@ GR_ENTRY(grBufferSwap, void, (FxU32 swapInterval)) if (swapInterval > 1) swapInterval = ((swapInterval - 1) << 1) | 1; /* Format for hw */ } - - while(_grBufferNumPending() > _GlideRoot.environment.swapPendingCount); + while(_grBufferNumPending() > _GlideRoot.environment.swapPendingCount) + ; #ifndef HAL_CSIM /* Cycle the buffer indices */ @@ -2963,8 +2963,8 @@ GR_ENTRY(grDRIBufferSwap, void, (FxU32 swapInterval)) if (swapInterval > 1) swapInterval = ((swapInterval - 1) << 1) | 1; /* Format for hw */ } - - while(_grBufferNumPending() > 3); + while(_grBufferNumPending() > 3) + ; #if USE_PACKET_FIFO { diff --git a/glide3x/sst1/glide3/src/gglide.c b/glide3x/sst1/glide3/src/gglide.c index 6c36c65..3228f40 100644 --- a/glide3x/sst1/glide3/src/gglide.c +++ b/glide3x/sst1/glide3/src/gglide.c @@ -617,7 +617,8 @@ GR_ENTRY(grBufferSwap, void, ( FxU32 swapInterval )) /* wait until there's 6 or fewer buffer swaps pending */ /* the hardware counter is only 3 bits so we don't want it to overflow */ /* also the latency gets too long */ - while (_grBufferNumPending() > _GlideRoot.environment.swapPendingCount); + while (_grBufferNumPending() > _GlideRoot.environment.swapPendingCount) + ; /* if the interval is non-zero turn on VSYNC waiting */ vSync = swapInterval > 0 ? 1 : 0; diff --git a/swlibs/newpci/pcilib/fxlinux.c b/swlibs/newpci/pcilib/fxlinux.c index 8fc9bf6..0870eb4 100644 --- a/swlibs/newpci/pcilib/fxlinux.c +++ b/swlibs/newpci/pcilib/fxlinux.c @@ -184,7 +184,7 @@ pciIdentifyLinux(void) static FxBool pciOutputStringLinux(const char *msg) { - printf(msg); + printf("%s", msg); return FXTRUE; }