warning fixes.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -184,7 +184,7 @@ pciIdentifyLinux(void)
|
||||
static FxBool
|
||||
pciOutputStringLinux(const char *msg)
|
||||
{
|
||||
printf(msg);
|
||||
printf("%s", msg);
|
||||
return FXTRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user