Codechange: Silence warnings about intentionally unused parameters.

This commit is contained in:
frosch
2023-09-16 22:20:53 +02:00
committed by frosch
parent df400ef84a
commit b6c8f301be
227 changed files with 972 additions and 1039 deletions

View File

@@ -36,7 +36,7 @@ static FSoundDriver_Cocoa iFSoundDriver_Cocoa;
static AudioUnit _outputAudioUnit;
/* The CoreAudio callback */
static OSStatus audioCallback(void *inRefCon, AudioUnitRenderActionFlags *inActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames, AudioBufferList * ioData)
static OSStatus audioCallback(void *, AudioUnitRenderActionFlags *, const AudioTimeStamp *, UInt32, UInt32, AudioBufferList *ioData)
{
MxMixSamples(ioData->mBuffers[0].mData, ioData->mBuffers[0].mDataByteSize / 4);

View File

@@ -15,7 +15,7 @@
/** Implementation of the null sound driver. */
class SoundDriver_Null : public SoundDriver {
public:
const char *Start(const StringList &param) override { return nullptr; }
const char *Start(const StringList &) override { return nullptr; }
void Stop() override { }
const char *GetName() const override { return "null"; }

View File

@@ -22,11 +22,10 @@ static FSoundDriver_SDL iFSoundDriver_SDL;
/**
* Callback that fills the sound buffer.
* @param userdata Ignored.
* @param stream The stream to put data into.
* @param len The length of the stream in bytes.
*/
static void CDECL fill_sound_buffer(void *userdata, Uint8 *stream, int len)
static void CDECL fill_sound_buffer(void *, Uint8 *stream, int len)
{
MxMixSamples(stream, len / 4);
}

View File

@@ -22,11 +22,10 @@ static FSoundDriver_SDL iFSoundDriver_SDL;
/**
* Callback that fills the sound buffer.
* @param userdata Ignored.
* @param stream The stream to put data into.
* @param len The length of the stream in bytes.
*/
static void CDECL fill_sound_buffer(void *userdata, Uint8 *stream, int len)
static void CDECL fill_sound_buffer(void *, Uint8 *stream, int len)
{
MxMixSamples(stream, len / 4);
}

View File

@@ -40,7 +40,7 @@ static void PrepareHeader(WAVEHDR *hdr)
if (waveOutPrepareHeader(_waveout, hdr, sizeof(WAVEHDR)) != MMSYSERR_NOERROR) throw "waveOutPrepareHeader failed";
}
static DWORD WINAPI SoundThread(LPVOID arg)
static DWORD WINAPI SoundThread(LPVOID)
{
SetCurrentThreadName("ottd:win-sound");