Fix some cases of variables being used uninitialized. Also some unused

variables, writeable strings and dangerously shadowed variables.

index(), gamma(), exp() and y0() are POSIX functions and using those
names can cause namespace confusion.

A number of C files were missing the final newline required by ANSI C
and some versions of GCC are pedantic enough to complain about this.

These changes simply the scons build, allowing us to get rid of
filterWarnings which is simply more trouble than it's worth.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5574 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang
2010-06-02 20:35:12 +00:00
parent 03d1438be8
commit 30e437f9e3
85 changed files with 212 additions and 284 deletions

View File

@ -151,4 +151,4 @@ void SetInterlacingMode(const BPCmd &bp)
// TODO
}
};
};

View File

@ -140,4 +140,4 @@ int GetNumAdapters();
} // namespace
#endif
#endif

View File

@ -31,4 +31,4 @@ namespace D3D
// Utility functions
LPDIRECT3DVERTEXSHADER9 CompileAndCreateVertexShader(const char *code, int len);
LPDIRECT3DPIXELSHADER9 CompileAndCreatePixelShader(const char *code, int len);
}
}

View File

@ -465,4 +465,4 @@ void DListCache::Cleanup()
SETSTAT(stats.numDListsAlive,(int)dlists.size());
}
#endif
#endif

View File

@ -69,4 +69,4 @@ public:
static void Call(u32 _addr, u32 _size);
};
#endif
#endif

View File

@ -17,4 +17,4 @@
#pragma once
void DlgSettings_Show(HINSTANCE hInstance, HWND parent);
void DlgSettings_Show(HINSTANCE hInstance, HWND parent);

View File

@ -519,4 +519,4 @@ const XFBSource** FramebufferManager::getVirtualXFBSource(u32 xfbAddr, u32 fbWid
}
return &m_overlappingXFBArray[0];
}
}

View File

@ -28,4 +28,4 @@
// A global plugin specification
extern PLUGIN_GLOBALS* globals;
#endif // _GLOBALS_H_
#endif // _GLOBALS_H_

View File

@ -170,4 +170,4 @@ void D3DVertexFormat::SetupVertexPointers() const
D3D::SetVertexDeclaration(d3d_decl);
else
ERROR_LOG(VIDEO, "invalid d3d decl");
}
}

View File

@ -81,4 +81,4 @@ struct RGBAFloat
}
};
#endif
#endif

View File

@ -86,4 +86,4 @@ public:
static void CopyRenderTargetToTexture(u32 address, bool bFromZBuffer, bool bIsIntensityFmt, u32 copyfmt, int bScaleByHalf, const EFBRectangle &source_rect);
};
#endif
#endif

View File

@ -145,4 +145,4 @@ namespace W32Util
{
Write(&i,sizeof(char));
}
}
}

View File

@ -58,4 +58,4 @@ namespace W32Util
}
#endif //__LAMEFILE_H__
#endif //__LAMEFILE_H__

View File

@ -99,4 +99,4 @@ namespace W32Util
CloseClipboard();
return TRUE;
}
}
}

View File

@ -6,4 +6,4 @@ namespace W32Util
HBITMAP CreateBitmapFromARGB(HWND someHwnd, DWORD *image, int w, int h);
void NiceSizeFormat(size_t size, char * out);
BOOL CopyTextToClipboard(HWND hwnd, char * text);
}
}

View File

@ -224,4 +224,4 @@ namespace W32Util
}
return 0;
}
}
}

View File

@ -84,4 +84,4 @@ namespace W32Util
}
}

View File

@ -12,4 +12,4 @@ namespace W32Util
std::string& _strFileName);
std::vector<std::string> BrowseForFileNameMultiSelect(bool _bLoad, HWND _hParent, const char *_pTitle,
const char *_pInitialFolder,const char *_pFilter,const char *_pExtension);
}
}

View File

@ -79,4 +79,4 @@ namespace W32Util
if (_handle != NULL)
SuspendThread(_handle);
}
}
}

View File

@ -27,4 +27,4 @@ void XFUpdatePJ();
void LoadXFReg(u32 transferSize, u32 address, u32 *pData);
void LoadIndexedXF(u32 val, int array);
#endif
#endif

View File

@ -24,4 +24,4 @@ int write_u_long_int ( unsigned long int u_long_int_val, FILE *fileout );
int write_u_short_int ( unsigned short int u_short_int_val, FILE *fileout );
#endif
#endif

View File

@ -15,4 +15,4 @@
// Official SVN repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/
#include "stdafx.h"
#include "stdafx.h"