Search
lxdream.org :: lxdream :: r1081:ef31ae97bb8b
lxdream 0.9.1
released Jun 29
Download Now
changeset1081:ef31ae97bb8b
parent1080:5b17c9900d9e
child1082:852fc1db460a
authornkeynes
dateTue Dec 01 18:18:15 2009 +1000 (10 years ago)
Fix compile-time warnings
src/drivers/serial_unix.c
src/drivers/video_null.c
src/gdbserver.c
src/main.c
src/serial.h
1.1 --- a/src/drivers/serial_unix.c Tue Dec 01 17:59:43 2009 +1000
1.2 +++ b/src/drivers/serial_unix.c Tue Dec 01 18:18:15 2009 +1000
1.3 @@ -73,6 +73,7 @@
1.4 serial_attach_device( dev );
1.5 }
1.6 }
1.7 + return TRUE;
1.8 }
1.9
1.10
2.1 --- a/src/drivers/video_null.c Tue Dec 01 17:59:43 2009 +1000
2.2 +++ b/src/drivers/video_null.c Tue Dec 01 18:18:15 2009 +1000
2.3 @@ -56,6 +56,9 @@
2.4 {
2.5 }
2.6
2.7 +static void video_null_swap_buffers(void)
2.8 +{
2.9 +}
2.10
2.11 struct display_driver display_null_driver = {
2.12 "null",
2.13 @@ -72,4 +75,5 @@
2.14 video_null_load_frame_buffer,
2.15 video_null_display_render_buffer,
2.16 video_null_display_blank,
2.17 + video_null_swap_buffers,
2.18 video_null_read_render_buffer };
3.1 --- a/src/gdbserver.c Tue Dec 01 17:59:43 2009 +1000
3.2 +++ b/src/gdbserver.c Tue Dec 01 18:18:15 2009 +1000
3.3 @@ -523,7 +523,7 @@
3.4 server->cpu = cpu;
3.5 server->mmu = mmu;
3.6 server->fd = fd;
3.7 - gboolean result = io_register_tcp_listener( fd, gdb_server_connect_callback, server, gdb_server_free );
3.8 + gboolean result = io_register_tcp_listener( fd, gdb_server_connect_callback, server, gdb_server_free ) != NULL;
3.9 INFO( "%s GDB server running on port %d", cpu->name, port );
3.10 return result;
3.11 }
4.1 --- a/src/main.c Tue Dec 01 17:59:43 2009 +1000
4.2 +++ b/src/main.c Tue Dec 01 18:18:15 2009 +1000
4.3 @@ -37,6 +37,7 @@
4.4 #include "sh4/sh4.h"
4.5 #include "aica/armdasm.h"
4.6 #include "vmu/vmulist.h"
4.7 +#include "serial.h"
4.8 #include "hotkeys.h"
4.9 #include "plugin.h"
4.10
5.1 --- a/src/serial.h Tue Dec 01 17:59:43 2009 +1000
5.2 +++ b/src/serial.h Tue Dec 01 18:18:15 2009 +1000
5.3 @@ -47,6 +47,8 @@
5.4 serial_device_t serial_detach_device( );
5.5 serial_device_t serial_get_device( );
5.6
5.7 +void serial_init();
5.8 +
5.9 /**
5.10 * Destroy a serial device.
5.11 */
.