mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Misc warning fixes.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3583 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
@ -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()
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -23,8 +23,6 @@
|
||||
namespace Gen
|
||||
{
|
||||
|
||||
static bool enableBranchHints = false;
|
||||
|
||||
// TODO(ector): Add EAX special casing, for ever so slightly smaller code.
|
||||
struct NormalOpDef
|
||||
{
|
||||
|
Reference in New Issue
Block a user