clean (some) gdb warning: round 1

* use svnrev.h on linux too
* replace sprintf_s with snprintf (hope it still compile on Windows)
* init integer with 0 instead of NULL
* various int -> u32/uint32/uint on for loop index
* remove a couple of unused variable
* init few variable
* disable unused warning results


git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5683 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gregory.hainaut committed 2013-06-28 10:43:50 +00:00
1 parent ca1edbf2cb
commit 3c7167be50
40 files changed
+97 -178

No files matched your search

+2 -8
View File
@@ -31,9 +31,7 @@
using namespace std;
#include "DEV9.h"
#ifdef _MSC_VER
# include "svnrev.h"
#endif
#include "svnrev.h"
const unsigned char version = PS2E_DEV9_VERSION;
const unsigned char revision = 0;
@@ -76,12 +74,8 @@ EXPORT_C_(u32) PS2EgetLibType()
EXPORT_C_(char*) PS2EgetLibName()
{
#ifdef _MSC_VER
sprintf_s( libraryName, "DEV9null Driver r%d%s",SVN_REV, SVN_MODS ? "m" : "");
snprintf( libraryName, 255, "DEV9null Driver r%d%s",SVN_REV, SVN_MODS ? "m" : "");
return libraryName;
#else
return "DEV9null Driver";
#endif
}
EXPORT_C_(u32) PS2EgetLibVersion2(u32 type)