zzogl/spu2x: clang warning fix

Nothing critical
This commit is contained in:
Gregory Hainaut 2014-07-19 17:15:00 +02:00
parent ef0e3fe6c6
commit 8a43789db5
4 changed files with 9 additions and 18 deletions

View File

@ -231,7 +231,7 @@ public:
}
// Returns the amount of free buffer space, in samples.
uint l = snd_pcm_avail_update(handle);
int l = snd_pcm_avail_update(handle);
if( l < 0 ) return 0;
return (l / 1000) * (SampleRate / 1000);
}

View File

@ -237,7 +237,7 @@ bool GLWindow::CreateContextGL(int major, int minor)
// Only keep for older card but NVIDIA and AMD both drop the support of those cards
if (major <= 2) {
XVisualInfo *vi = glXChooseVisual(NativeDisplay, DefaultScreen(NativeDisplay), attrListDbl_2_0);
if (vi == NULL) return NULL;
if (vi == NULL) return false;
glxContext = glXCreateContext(NativeDisplay, vi, NULL, GL_TRUE);
XFree(vi);

View File

@ -90,7 +90,7 @@ typedef signed long long int64;
extern wxString s_strIniPath; // Air's new (r2361) new constant for ini file path
static std::string format(const char* fmt, ...)
static inline std::string format(const char* fmt, ...)
{
va_list args;
va_start(args, fmt);

View File

@ -806,28 +806,19 @@ void ZZDestroy()
g_nCurVBOIndex = 0;
if (pvs != NULL)
for (u32 i = 0; i < ArraySize(pvs); ++i)
{
for (u32 i = 0; i < ArraySize(pvs); ++i)
{
SAFE_RELEASE_PROG(pvs[i]);
}
SAFE_RELEASE_PROG(pvs[i]);
}
if (ppsRegular != NULL)
for (u32 i = 0; i < ArraySize(ppsRegular); ++i)
{
for (u32 i = 0; i < ArraySize(ppsRegular); ++i)
{
SAFE_RELEASE_PROG(ppsRegular[i].prog);
}
SAFE_RELEASE_PROG(ppsRegular[i].prog);
}
if (ppsTexture != NULL)
for (u32 i = 0; i < ArraySize(ppsTexture); ++i)
{
for (u32 i = 0; i < ArraySize(ppsTexture); ++i)
{
SAFE_RELEASE_PROG(ppsTexture[i].prog);
}
SAFE_RELEASE_PROG(ppsTexture[i].prog);
}
SAFE_RELEASE_PROG(pvsBitBlt.prog);