More fix warnings about static function and prototype

This commit is contained in:
Sylvain
2023-03-08 16:12:45 +01:00
committed by Sylvain Becker
parent 16bb6a0b3d
commit c963f02571
38 changed files with 262 additions and 257 deletions

View File

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