mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
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:
@ -5,4 +5,4 @@
|
||||
#define u8 unsigned char
|
||||
#define s8 signed char
|
||||
#define s16 signed short
|
||||
#define s32 signed int
|
||||
#define s32 signed int
|
||||
|
@ -56,4 +56,4 @@ u32 GetXER()
|
||||
: "=&r"(var)
|
||||
);
|
||||
return var;
|
||||
}
|
||||
}
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
u32 GetCR0();
|
||||
u32 GetCR(u32 num);
|
||||
u32 GetXER();
|
||||
u32 GetXER();
|
||||
|
@ -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);
|
||||
|
@ -13,4 +13,4 @@ void fsqrtRC(float *a, float *b, float *c, float *d)
|
||||
"fsqrt. fr0,%0"
|
||||
: "=&r"(*a)
|
||||
);*/
|
||||
}
|
||||
}
|
||||
|
@ -71,4 +71,4 @@ void divwoRC(u32 *a, u32 *b, u32 *c, u32 *d)
|
||||
: "r"(*b), "r"(*c)
|
||||
: "cc"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -185,4 +185,4 @@ void RunInstruction(u32 inst)
|
||||
}
|
||||
if(f)
|
||||
fclose(f);
|
||||
}
|
||||
}
|
||||
|
@ -49,4 +49,4 @@ static inst instructions[] = {
|
||||
};
|
||||
|
||||
|
||||
void RunInstruction(u32 inst);
|
||||
void RunInstruction(u32 inst);
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user