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

@ -5,4 +5,4 @@
#define u8 unsigned char
#define s8 signed char
#define s16 signed short
#define s32 signed int
#define s32 signed int

View File

@ -56,4 +56,4 @@ u32 GetXER()
: "=&r"(var)
);
return var;
}
}

View File

@ -2,4 +2,4 @@
u32 GetCR0();
u32 GetCR(u32 num);
u32 GetXER();
u32 GetXER();

View File

@ -17,4 +17,4 @@ void divwoRC(u32 *a, u32 *b, u32 *c, u32 *d);
void fsqrt(float *a, float *b, float *c, float *d);
void fsqrtRC(float *a, float *b, float *c, float *d);
void fsqrtRC(float *a, float *b, float *c, float *d);

View File

@ -13,4 +13,4 @@ void fsqrtRC(float *a, float *b, float *c, float *d)
"fsqrt. fr0,%0"
: "=&r"(*a)
);*/
}
}

View File

@ -71,4 +71,4 @@ void divwoRC(u32 *a, u32 *b, u32 *c, u32 *d)
: "r"(*b), "r"(*c)
: "cc"
);
}
}

View File

@ -185,4 +185,4 @@ void RunInstruction(u32 inst)
}
if(f)
fclose(f);
}
}

View File

@ -49,4 +49,4 @@ static inst instructions[] = {
};
void RunInstruction(u32 inst);
void RunInstruction(u32 inst);

View File

@ -25,17 +25,6 @@
#include "asm_tables.h"
#include "Helpers.h"
#ifdef __APPLE__
void die(char *msg){}
void initialise_fat(){}
void init_crap(){}
void end(){}
#endif
FILE *f = NULL;
int main(int argc, char **argv) {
init_crap();

View File

@ -1,2 +1,2 @@
all:
g++ -g -arch ppc dolphintest_asm.cpp asm_tables.cpp Helpers.cpp asm_integer.cpp asm_float.cpp -o Test
g++ -g -arch ppc dolphintest_asm.cpp asm_tables.cpp Helpers.cpp asm_integer.cpp asm_float.cpp -o Test