From: Lawrence S. <ljs...@us...> - 2013-06-07 00:53:29
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A pseudo Operating System for the Dreamcast.". The branch, master has been updated via d9c299e747991c7ba85a6c5811ac4b226b481eb0 (commit) from 2a0ff9035fe0056897c1e1868a33896d3e35beb4 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit d9c299e747991c7ba85a6c5811ac4b226b481eb0 Author: Lawrence Sebald <ljs...@us...> Date: Thu Jun 6 20:53:10 2013 -0400 Clean up warnings with -std=gnu99. ----------------------------------------------------------------------- Summary of changes: doc/CHANGELOG | 1 + kernel/arch/dreamcast/hardware/cdrom.c | 4 ++-- .../arch/dreamcast/hardware/network/lan_adapter.c | 5 ++++- kernel/arch/dreamcast/hardware/pvr/pvr_buffers.c | 4 +++- kernel/arch/dreamcast/sound/snd_stream.c | 4 ++-- kernel/libc/koslib/dbglog.c | 6 +----- kernel/net/net_arp.c | 4 ++-- kernel/net/net_ipv6.c | 5 +++-- 8 files changed, 18 insertions(+), 15 deletions(-) diff --git a/doc/CHANGELOG b/doc/CHANGELOG index e65d0e7..840acb9 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -12,6 +12,7 @@ KallistiOS version 2.0.1 ----------------------------------------------- - *** Removed the GBA, ia32, and ps2 ports. If someone really wants them back and wants to maintain them, let me know. [LS] - DC Fixed fmath functions so they compile in C99 mode [LS] +- *** Cleaned up warnings with -std=gnu99 for C code [LS] KallistiOS version 2.0.0 ----------------------------------------------- - DC Broadband Adapter driver fixes [Dan Potter == DP] diff --git a/kernel/arch/dreamcast/hardware/cdrom.c b/kernel/arch/dreamcast/hardware/cdrom.c index 6b4e66f..9d082fb 100644 --- a/kernel/arch/dreamcast/hardware/cdrom.c +++ b/kernel/arch/dreamcast/hardware/cdrom.c @@ -359,7 +359,7 @@ int cdrom_spin_down() { /* Initialize: assume no threading issues */ int cdrom_init() { - uint32 p, x; + uint32 p; volatile uint32 *react = (uint32*)0xa05f74e4, *bios = (uint32*)0xa0000000; @@ -371,7 +371,7 @@ int cdrom_init() { *react = 0x1fffff; for(p = 0; p < 0x200000 / 4; p++) { - x = bios[p]; + (void)bios[p]; } /* Reset system functions */ diff --git a/kernel/arch/dreamcast/hardware/network/lan_adapter.c b/kernel/arch/dreamcast/hardware/network/lan_adapter.c index 08b48ba..f03034f 100644 --- a/kernel/arch/dreamcast/hardware/network/lan_adapter.c +++ b/kernel/arch/dreamcast/hardware/network/lan_adapter.c @@ -262,12 +262,15 @@ static void la_strobe_eeprom() { la_write(BMPR16, BMPR16_ECS); } static void la_read_eeprom(uint8 *data) { - uint8 save16, save17, val; + //uint8 save16, save17 + uint8 val; int n, bit; +#if 0 /* Save the current value of the EEPROM registers */ save16 = la_read(BMPR16); save17 = la_read(BMPR17); +#endif /* Read bytes from EEPROM, two per iteration */ for(n = 0; n < 3; n++) { diff --git a/kernel/arch/dreamcast/hardware/pvr/pvr_buffers.c b/kernel/arch/dreamcast/hardware/pvr/pvr_buffers.c index 4831323..5facd9d 100644 --- a/kernel/arch/dreamcast/hardware/pvr/pvr_buffers.c +++ b/kernel/arch/dreamcast/hardware/pvr/pvr_buffers.c @@ -27,14 +27,16 @@ void pvr_init_tile_matrix(int which) { int x, y; uint32 *vr; volatile int *opbs; - uint32 matbase, opbbase; + //uint32 matbase, opbbase; vr = (uint32*)PVR_RAM_BASE; buf = pvr_state.ta_buffers + which; opbs = pvr_state.opb_size; +#if 0 matbase = buf->tile_matrix; opbbase = buf->opb; +#endif /* Header of zeros */ vr += buf->tile_matrix / 4; diff --git a/kernel/arch/dreamcast/sound/snd_stream.c b/kernel/arch/dreamcast/sound/snd_stream.c index 56c2451..a2f86ed 100644 --- a/kernel/arch/dreamcast/sound/snd_stream.c +++ b/kernel/arch/dreamcast/sound/snd_stream.c @@ -444,7 +444,7 @@ static void dma_chain(ptr_t data) { /* Poll streamer to load more data if neccessary */ int snd_stream_poll(snd_stream_hnd_t hnd) { uint32 ch0pos, ch1pos; - int realbuffer; + //int realbuffer; int current_play_pos; int needed_samples; int got_samples; @@ -463,7 +463,7 @@ int snd_stream_poll(snd_stream_hnd_t hnd) { return -1; } - realbuffer = !((ch0pos < (streams[hnd].buffer_size / 4)) && (ch1pos < (streams[hnd].buffer_size / 4))); + //realbuffer = !((ch0pos < (streams[hnd].buffer_size / 4)) && (ch1pos < (streams[hnd].buffer_size / 4))); current_play_pos = (ch0pos < ch1pos) ? (ch0pos) : (ch1pos); diff --git a/kernel/libc/koslib/dbglog.c b/kernel/libc/koslib/dbglog.c index 1a199b7..32f897b 100644 --- a/kernel/libc/koslib/dbglog.c +++ b/kernel/libc/koslib/dbglog.c @@ -29,7 +29,6 @@ void dbglog_set_level(int level) { /* Kernel debug logging facility */ void dbglog(int level, const char *fmt, ...) { va_list args; - int i; /* If this log level is blocked out, don't even bother */ if(level > dbglog_level) @@ -40,7 +39,7 @@ void dbglog(int level, const char *fmt, ...) { spinlock_lock(&mutex); va_start(args, fmt); - i = vsprintf(printf_buf, fmt, args); + (void)vsprintf(printf_buf, fmt, args); va_end(args); if(irq_inside_int()) @@ -51,6 +50,3 @@ void dbglog(int level, const char *fmt, ...) { if(level >= DBG_ERROR && !irq_inside_int()) spinlock_unlock(&mutex); } - - - diff --git a/kernel/net/net_arp.c b/kernel/net/net_arp.c index f8ca244..da92190 100644 --- a/kernel/net/net_arp.c +++ b/kernel/net/net_arp.c @@ -262,10 +262,10 @@ static int net_arp_send(netif_t *nif, arp_pkt_t *pkt) { /* Receive an ARP packet and process it (called by net_input) */ int net_arp_input(netif_t *nif, const uint8 *pkt_in, int len) { - eth_hdr_t *eth_hdr; + //eth_hdr_t *eth_hdr; arp_pkt_t *pkt; - eth_hdr = (eth_hdr_t *)pkt_in; + //eth_hdr = (eth_hdr_t *)pkt_in; pkt = (arp_pkt_t *)(pkt_in + sizeof(eth_hdr_t)); switch(pkt->opcode[1]) { diff --git a/kernel/net/net_ipv6.c b/kernel/net/net_ipv6.c index 246c561..a404263 100644 --- a/kernel/net/net_ipv6.c +++ b/kernel/net/net_ipv6.c @@ -181,7 +181,8 @@ int net_ipv6_input(netif_t *src, const uint8 *pkt, int pktsize, const eth_hdr_t *eth) { ipv6_hdr_t *ip; uint8 next_hdr; - int pos, len, rv; + //int pos; + int len, rv; if(pktsize < sizeof(ipv6_hdr_t)) { /* This is obviously a bad packet, drop it */ @@ -200,7 +201,7 @@ int net_ipv6_input(netif_t *src, const uint8 *pkt, int pktsize, } /* Parse the header to find the payload */ - pos = sizeof(ipv6_hdr_t); + //pos = sizeof(ipv6_hdr_t); // Currently unused, but will be needed later. next_hdr = ip->next_header; if(eth) hooks/post-receive -- A pseudo Operating System for the Dreamcast. |