diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-11-17 20:49:47 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-11-17 20:49:47 +0000 |
| commit | fd5eec01f16990a3564e16421c7ce307c674dd45 (patch) | |
| tree | ee3fa6718a0c0ce1a530f7bf2fbdc66e82cab034 /plugins | |
| parent | 78a2df52ff3f2c081b1382bcb667c69df43976a9 (diff) | |
| download | pcsxr-fd5eec01f16990a3564e16421c7ce307c674dd45.tar.gz | |
Patch 10831 from Durandal_1707:
This should bring the number of warnings when compiling the Mac version with Clang and the -Wall option down to zero.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@72386 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins')
| -rwxr-xr-x | plugins/dfsound/openal.c | 15 | ||||
| -rw-r--r-- | plugins/dfsound/spu.c | 2 | ||||
| -rw-r--r-- | plugins/dfsound/stdafx.h | 6 | ||||
| -rw-r--r-- | plugins/dfsound/xa.c | 4 | ||||
| -rw-r--r-- | plugins/dfxvideo/zn.c | 2 | ||||
| -rw-r--r-- | plugins/peopsxgl/draw.h | 1 |
6 files changed, 20 insertions, 10 deletions
diff --git a/plugins/dfsound/openal.c b/plugins/dfsound/openal.c index ccc40dcf..05076b4d 100755 --- a/plugins/dfsound/openal.c +++ b/plugins/dfsound/openal.c @@ -72,8 +72,9 @@ static ALfloat ListenerOri[] = {0.0, 0.0, -1.0, 0.0, 1.0, 0.0}; static ALenum format = AL_FORMAT_STEREO16;
static ALuint sampleRate = 44100;
-static ALuint sampleQuality = 16;
-static ALuint channels = 2;
+
+static ALuint UNUSED_VARIABLE sampleQuality = 16;
+static ALuint UNUSED_VARIABLE channels = 2;
/******************************************************************************/
/* Error handling.
@@ -161,10 +162,10 @@ void SetupSound() }
// ALC info.
- const ALCubyte* deviceName = (ALCubyte*)alcGetString(pDevice, ALC_DEVICE_SPECIFIER);
+ const ALCubyte* UNUSED_VARIABLE deviceName = (ALCubyte*)alcGetString(pDevice, ALC_DEVICE_SPECIFIER);
//printf("[SPU] ALC_DEVICE_SPECIFIER = %s.\n", deviceName);
- const ALCubyte* extensionList = (ALCubyte*)alcGetString(pDevice, ALC_EXTENSIONS);
+ const ALCubyte* UNUSED_VARIABLE extensionList = (ALCubyte*)alcGetString(pDevice, ALC_EXTENSIONS);
//printf("[SPU] ALC_EXTENSIONS = %s.\n", extensionList);
// Create audio context.
@@ -184,13 +185,13 @@ void SetupSound() }
// AL info.
- const ALubyte* version = (ALubyte*)alGetString(AL_VERSION);
+ const ALubyte* UNUSED_VARIABLE version = (ALubyte*)alGetString(AL_VERSION);
//printf("[SPU] AL_VERSION = %s.\n", version);
- const ALubyte* renderer = (ALubyte*)alGetString(AL_RENDERER);
+ const ALubyte* UNUSED_VARIABLE renderer = (ALubyte*)alGetString(AL_RENDERER);
//printf("[SPU] AL_RENDERER = %s.\n", renderer);
- const ALubyte* vendor = (ALubyte*)alGetString(AL_VENDOR);
+ const ALubyte* UNUSED_VARIABLE vendor = (ALubyte*)alGetString(AL_VENDOR);
//printf("[SPU] AL_VENDOR = %s.\n", vendor);
// Create buffers.
diff --git a/plugins/dfsound/spu.c b/plugins/dfsound/spu.c index e21a6629..55a2d38f 100644 --- a/plugins/dfsound/spu.c +++ b/plugins/dfsound/spu.c @@ -27,6 +27,8 @@ #ifdef _WINDOWS
#include "debug.h"
#include "record.h"
+#elif defined(_MACOSX)
+#include "maccfg.h"
#endif
#ifdef ENABLE_NLS
diff --git a/plugins/dfsound/stdafx.h b/plugins/dfsound/stdafx.h index 15ad99fa..812ebb9d 100644 --- a/plugins/dfsound/stdafx.h +++ b/plugins/dfsound/stdafx.h @@ -65,4 +65,10 @@ #endif
+#if defined (__GNUC__) || defined (__clang__)
+#define UNUSED_VARIABLE __attribute__((unused))
+#else
+#define UNUSED_VARIABLE
+#endif
+
#include "psemuxa.h"
diff --git a/plugins/dfsound/xa.c b/plugins/dfsound/xa.c index 6dd689be..1becc903 100644 --- a/plugins/dfsound/xa.c +++ b/plugins/dfsound/xa.c @@ -45,8 +45,8 @@ uint32_t * CDDAEnd = NULL; int iLeftXAVol = 0x8000;
int iRightXAVol = 0x8000;
-static int gauss_ptr = 0;
-static int gauss_window[8] = {0, 0, 0, 0, 0, 0, 0, 0};
+static int UNUSED_VARIABLE gauss_ptr = 0;
+static int UNUSED_VARIABLE gauss_window[8] = {0, 0, 0, 0, 0, 0, 0, 0};
#define gvall0 gauss_window[gauss_ptr]
#define gvall(x) gauss_window[(gauss_ptr+x)&3]
diff --git a/plugins/dfxvideo/zn.c b/plugins/dfxvideo/zn.c index 38b906ba..c4de91a1 100644 --- a/plugins/dfxvideo/zn.c +++ b/plugins/dfxvideo/zn.c @@ -72,7 +72,7 @@ int iTileCheat=0; typedef struct GPUOTAG
{
uint32_t Version; // Version of structure - currently 1
- long hWnd; // Window handle
+ unsigned long hWnd; // Window handle
uint32_t ScreenRotation; // 0 = 0CW, 1 = 90CW, 2 = 180CW, 3 = 270CW = 90CCW
uint32_t GPUVersion; // 0 = a, 1 = b, 2 = c
const char* GameName; // NULL terminated string
diff --git a/plugins/peopsxgl/draw.h b/plugins/peopsxgl/draw.h index 82f920db..e561c996 100644 --- a/plugins/peopsxgl/draw.h +++ b/plugins/peopsxgl/draw.h @@ -50,6 +50,7 @@ void SetOGLDisplaySettings (BOOL DisplaySet); void ReadConfig(void);
void WriteConfig(void);
void SetExtGLFuncs(void);
+void CreateScanLines(void);
///////////////////////////////////////////////////////////////////////
|
