mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-13 23:08:13 +00:00
More fix warnings about static function and prototype
This commit is contained in:
@@ -52,19 +52,19 @@ void SDLTest_FuzzerInit(Uint64 execKey)
|
||||
fuzzerInvocationCounter = 0;
|
||||
}
|
||||
|
||||
int SDLTest_GetFuzzerInvocationCount()
|
||||
int SDLTest_GetFuzzerInvocationCount(void)
|
||||
{
|
||||
return fuzzerInvocationCounter;
|
||||
}
|
||||
|
||||
Uint8 SDLTest_RandomUint8()
|
||||
Uint8 SDLTest_RandomUint8(void)
|
||||
{
|
||||
fuzzerInvocationCounter++;
|
||||
|
||||
return (Uint8)SDLTest_RandomInt(&rndContext) & 0x000000FF;
|
||||
}
|
||||
|
||||
Sint8 SDLTest_RandomSint8()
|
||||
Sint8 SDLTest_RandomSint8(void)
|
||||
{
|
||||
fuzzerInvocationCounter++;
|
||||
|
||||
@@ -72,7 +72,7 @@ Sint8 SDLTest_RandomSint8()
|
||||
}
|
||||
|
||||
Uint16
|
||||
SDLTest_RandomUint16()
|
||||
SDLTest_RandomUint16(void)
|
||||
{
|
||||
fuzzerInvocationCounter++;
|
||||
|
||||
@@ -80,7 +80,7 @@ SDLTest_RandomUint16()
|
||||
}
|
||||
|
||||
Sint16
|
||||
SDLTest_RandomSint16()
|
||||
SDLTest_RandomSint16(void)
|
||||
{
|
||||
fuzzerInvocationCounter++;
|
||||
|
||||
@@ -88,7 +88,7 @@ SDLTest_RandomSint16()
|
||||
}
|
||||
|
||||
Sint32
|
||||
SDLTest_RandomSint32()
|
||||
SDLTest_RandomSint32(void)
|
||||
{
|
||||
fuzzerInvocationCounter++;
|
||||
|
||||
@@ -96,7 +96,7 @@ SDLTest_RandomSint32()
|
||||
}
|
||||
|
||||
Uint32
|
||||
SDLTest_RandomUint32()
|
||||
SDLTest_RandomUint32(void)
|
||||
{
|
||||
fuzzerInvocationCounter++;
|
||||
|
||||
@@ -104,7 +104,7 @@ SDLTest_RandomUint32()
|
||||
}
|
||||
|
||||
Uint64
|
||||
SDLTest_RandomUint64()
|
||||
SDLTest_RandomUint64(void)
|
||||
{
|
||||
union
|
||||
{
|
||||
@@ -122,7 +122,7 @@ SDLTest_RandomUint64()
|
||||
}
|
||||
|
||||
Sint64
|
||||
SDLTest_RandomSint64()
|
||||
SDLTest_RandomSint64(void)
|
||||
{
|
||||
union
|
||||
{
|
||||
@@ -422,24 +422,24 @@ SDLTest_RandomSint64BoundaryValue(Sint64 boundary1, Sint64 boundary2, SDL_bool v
|
||||
validDomain);
|
||||
}
|
||||
|
||||
float SDLTest_RandomUnitFloat()
|
||||
float SDLTest_RandomUnitFloat(void)
|
||||
{
|
||||
return SDLTest_RandomUint32() / (float)UINT_MAX;
|
||||
}
|
||||
|
||||
float SDLTest_RandomFloat()
|
||||
float SDLTest_RandomFloat(void)
|
||||
{
|
||||
return (float)(SDLTest_RandomUnitDouble() * 2.0 * (double)FLT_MAX - (double)(FLT_MAX));
|
||||
}
|
||||
|
||||
double
|
||||
SDLTest_RandomUnitDouble()
|
||||
SDLTest_RandomUnitDouble(void)
|
||||
{
|
||||
return (double)(SDLTest_RandomUint64() >> 11) * (1.0 / 9007199254740992.0);
|
||||
}
|
||||
|
||||
double
|
||||
SDLTest_RandomDouble()
|
||||
SDLTest_RandomDouble(void)
|
||||
{
|
||||
double r = 0.0;
|
||||
double s = 1.0;
|
||||
@@ -454,7 +454,7 @@ SDLTest_RandomDouble()
|
||||
}
|
||||
|
||||
char *
|
||||
SDLTest_RandomAsciiString()
|
||||
SDLTest_RandomAsciiString(void)
|
||||
{
|
||||
return SDLTest_RandomAsciiStringWithMaximumLength(255);
|
||||
}
|
||||
|
Reference in New Issue
Block a user