From: Lawrence S. <ljs...@us...> - 2013-06-07 04:08:56
|
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 09fa80dfbd971a96127cb34827b87c8321e993c6 (commit) from 95249813354746d78f1920cf6b2b68867b9dadb5 (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 09fa80dfbd971a96127cb34827b87c8321e993c6 Author: Lawrence Sebald <ljs...@us...> Date: Fri Jun 7 00:08:31 2013 -0400 Get rid of all warnings about initializers that appear with -Wextra. ----------------------------------------------------------------------- Summary of changes: kernel/arch/dreamcast/hardware/modem/modem.c | 6 ++++-- kernel/arch/dreamcast/sound/snd_stream.c | 2 +- kernel/net/net_ipv6.c | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/kernel/arch/dreamcast/hardware/modem/modem.c b/kernel/arch/dreamcast/hardware/modem/modem.c index 21966c7..fd93f1b 100644 --- a/kernel/arch/dreamcast/hardware/modem/modem.c +++ b/kernel/arch/dreamcast/hardware/modem/modem.c @@ -21,11 +21,13 @@ void modemSoftReset(void); void modemConfigurationReset(void); /* Configures the modem. It's assumed that the modem has already been reset. */ -MODEM_CFG modemCfg = { 0, 0, +MODEM_CFG modemCfg = { + 0, 0, { 0, 0, 0 }, NULL, { 0, MODEM_STATE_NULL, 0 }, - { 0, 0 } + { 0, 0 }, + { 0, 0, 0, 0, 0, 0 } }; /* Internal flags shared to keep track of parts of the driver's state */ diff --git a/kernel/arch/dreamcast/sound/snd_stream.c b/kernel/arch/dreamcast/sound/snd_stream.c index a2f86ed..8b2f2ca 100644 --- a/kernel/arch/dreamcast/sound/snd_stream.c +++ b/kernel/arch/dreamcast/sound/snd_stream.c @@ -80,7 +80,7 @@ typedef struct strchan { } strchan_t; // Our stream structs -static strchan_t streams[SND_STREAM_MAX] = { { { 0 } } }; +static strchan_t streams[SND_STREAM_MAX]; // Separation buffers (for stereo) int16 * sep_buffer[2] = { NULL, NULL }; diff --git a/kernel/net/net_ipv6.c b/kernel/net/net_ipv6.c index a404263..a8cd89b 100644 --- a/kernel/net/net_ipv6.c +++ b/kernel/net/net_ipv6.c @@ -239,7 +239,7 @@ net_ipv6_stats_t net_ipv6_get_stats() { uint16 net_ipv6_checksum_pseudo(const struct in6_addr *src, const struct in6_addr *dst, uint32 upper_len, uint8 next_hdr) { - ipv6_pseudo_hdr_t ps = {{{{ 0 }}}}; + ipv6_pseudo_hdr_t ps; /* Since the src and dst addresses aren't necessarily aligned when we send them in from header processing, do this the hard way. */ @@ -256,6 +256,7 @@ uint16 net_ipv6_checksum_pseudo(const struct in6_addr *src, ps.upper_layer_len = htonl(upper_len); ps.next_header = next_hdr; + ps.zero[0] = ps.zero[1] = ps.zero[2] = 0; return ~net_ipv4_checksum((uint8 *)&ps, sizeof(ipv6_pseudo_hdr_t), 0); } hooks/post-receive -- A pseudo Operating System for the Dreamcast. |