mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-11 14:30:08 +00:00
Cleanup and fixes for compiler warnings
This commit is contained in:
parent
65f991ebcc
commit
6fdeee3896
@ -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)"
|
||||
|
@ -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 );
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user