Fix warnings, only major one being an SDL_SetError not providing enough arguments.
parent
6671aa2a08
commit
1f71676906
|
@ -343,7 +343,7 @@ IMA_ADPCM_decode(Uint8 ** audio_buf, Uint32 * audio_len)
|
||||||
/* Check to make sure we have enough variables in the state array */
|
/* Check to make sure we have enough variables in the state array */
|
||||||
channels = IMA_ADPCM_state.wavefmt.channels;
|
channels = IMA_ADPCM_state.wavefmt.channels;
|
||||||
if (channels > SDL_arraysize(IMA_ADPCM_state.state)) {
|
if (channels > SDL_arraysize(IMA_ADPCM_state.state)) {
|
||||||
SDL_SetError("IMA ADPCM decoder can only handle %d channels",
|
SDL_SetError("IMA ADPCM decoder can only handle %zu channels",
|
||||||
SDL_arraysize(IMA_ADPCM_state.state));
|
SDL_arraysize(IMA_ADPCM_state.state));
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -197,7 +197,7 @@ SDL_GetPrefPath(const char *org, const char *app)
|
||||||
}
|
}
|
||||||
if (mkdir(retval, 0700) != 0 && errno != EEXIST) {
|
if (mkdir(retval, 0700) != 0 && errno != EEXIST) {
|
||||||
error:
|
error:
|
||||||
SDL_SetError("Couldn't create directory '%s': ", retval, strerror(errno));
|
SDL_SetError("Couldn't create directory '%s': '%s'", retval, strerror(errno));
|
||||||
SDL_free(retval);
|
SDL_free(retval);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -564,7 +564,7 @@ int SDLTest_RunSuites(SDLTest_TestSuiteReference *testSuites[], const char *user
|
||||||
execKey = SDLTest_GenerateExecKey((char *)runSeed, testSuite->name, testCase->name, iterationCounter);
|
execKey = SDLTest_GenerateExecKey((char *)runSeed, testSuite->name, testCase->name, iterationCounter);
|
||||||
}
|
}
|
||||||
|
|
||||||
SDLTest_Log("Test Iteration %i: execKey %llu", iterationCounter, execKey);
|
SDLTest_Log("Test Iteration %i: execKey %" PRIu64 "", iterationCounter, execKey);
|
||||||
testResult = SDLTest_RunTest(testSuite, testCase, execKey);
|
testResult = SDLTest_RunTest(testSuite, testCase, execKey);
|
||||||
|
|
||||||
if (testResult == TEST_RESULT_PASSED) {
|
if (testResult == TEST_RESULT_PASSED) {
|
||||||
|
|
|
@ -150,7 +150,7 @@ SDL_SemWaitTimeout(SDL_sem * sem, Uint32 timeout)
|
||||||
if (errno == ETIMEDOUT) {
|
if (errno == ETIMEDOUT) {
|
||||||
retval = SDL_MUTEX_TIMEDOUT;
|
retval = SDL_MUTEX_TIMEDOUT;
|
||||||
} else {
|
} else {
|
||||||
SDL_SetError(strerror(errno));
|
SDL_SetError("sem_timedwait returned an error: %s", strerror(errno));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue