Misc warning fixes.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3583 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
magumagu9
2009-06-28 20:53:26 +00:00
parent 1bcef5be76
commit 7f27cfc9d2
8 changed files with 13 additions and 23 deletions

View File

@ -165,7 +165,7 @@ inline void MatrixMul(int n, const float *a, const float *b, float *result)
float MathFloatVectorSum(std::vector<float> Vec)
{
float Sum = 0.0;
for(int i = 0; i < Vec.size(); i++)
for(unsigned i = 0; i < Vec.size(); i++)
{
Sum += Vec.at(i);
}

View File

@ -51,7 +51,6 @@
static u8 s_boot_sector [ BYTES_PER_SECTOR ]; /* boot sector */
static u8 s_fsinfo_sector [ BYTES_PER_SECTOR ]; /* FS Info sector */
static u8 s_fat_head [ BYTES_PER_SECTOR ]; /* first FAT sector */
static u8 s_zero_sector [ BYTES_PER_SECTOR ]; /* empty sector */
/* this is the date and time when creating the disk */
static int get_serial_id()

View File

@ -466,7 +466,7 @@ std::string TabsToSpaces(int tab_size, const std::string &in)
std::string out;
int len = 0;
// First, compute the size of the new string.
for (int i = 0; i < in.size(); i++)
for (unsigned i = 0; i < in.size(); i++)
{
if (in[i] == '\t')
len += tab_size;
@ -475,7 +475,7 @@ std::string TabsToSpaces(int tab_size, const std::string &in)
}
out.resize(len);
int out_ctr = 0;
for (int i = 0; i < in.size(); i++)
for (unsigned i = 0; i < in.size(); i++)
{
if (in[i] == '\t')
{
@ -488,4 +488,4 @@ std::string TabsToSpaces(int tab_size, const std::string &in)
}
}
return out;
}
}

View File

@ -23,8 +23,6 @@
namespace Gen
{
static bool enableBranchHints = false;
// TODO(ector): Add EAX special casing, for ever so slightly smaller code.
struct NormalOpDef
{