warning fixes.

This commit is contained in:
sezero
2018-08-09 21:50:10 +03:00
parent faf890d878
commit 2a7cfdfec7
4 changed files with 11 additions and 10 deletions

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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;

View File

@@ -184,7 +184,7 @@ pciIdentifyLinux(void)
static FxBool
pciOutputStringLinux(const char *msg)
{
printf(msg);
printf("%s", msg);
return FXTRUE;
}