Cleanup and fixes for compiler warnings

This commit is contained in:
Aaron Culliney 2014-10-31 10:53:10 -07:00
parent 65f991ebcc
commit 6fdeee3896
4 changed files with 6 additions and 3 deletions

View File

@ -37,7 +37,7 @@
# define APPLE_ASSEMBLER_IS_BROKEN 1
# define SN(foo) _##foo(%rip)
# define SNX(foo, INDEX, SCALE) (_X8,INDEX,SCALE)
# if defined(__LP64__)
# ifdef __LP64__
# define SNX_PROLOGUE(foo) leaLQ _##foo(%rip), _X8;
# else
# error "Building 32bit Darwin/x86 is not supported (unless you're a go-getter and make it supported)"

View File

@ -1559,7 +1559,7 @@ static void *interface_thread(void *current_key)
#endif
in_interface = true;
switch ((int)current_key) {
switch ((__SWORD_TYPE)current_key) {
#ifdef INTERFACE_CLASSIC
case kF1:
c_interface_select_diskette( 0 );

View File

@ -723,7 +723,10 @@ static void gldriver_init_glut(GLuint fbo) {
// renderer API
void video_driver_init(void *fbo) {
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpointer-to-int-cast"
defaultFBO = (GLuint)fbo;
#pragma GCC diagnostic pop
#if defined(__APPLE__)
gldriver_init_common();
#elif USE_GLUT

View File

@ -36,7 +36,7 @@
subLQ SN(base_vmem), _XAX; \
orLQ _XAX, SP_Reg_X;
#if __LP64__
#ifdef __LP64__
# define SZ_PTR 8
# define ROR_BIT 63
// x86_64 registers