From 13ed20c6e3cc2a5029d33df39cffbcc219fbacf1 Mon Sep 17 00:00:00 2001 From: garakmon Date: Sat, 16 Jun 2018 18:49:27 -0400 Subject: compiler fixes The compiler flag -s is not necessary and causes build failure on some systems (macOS, clang compilers) due to it being deprecated. Additionally, on those same systems, tools/aif2pcm/main.c failed to compile due to an overly cautious compiler not liking some struct declarations. These changes afaik do not affect other builds. --- tools/aif2pcm/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/aif2pcm/main.c') diff --git a/tools/aif2pcm/main.c b/tools/aif2pcm/main.c index fbb024a1d..b6287a1dd 100644 --- a/tools/aif2pcm/main.c +++ b/tools/aif2pcm/main.c @@ -469,12 +469,12 @@ do { \ void aif2pcm(const char *aif_filename, const char *pcm_filename, bool compress) { struct Bytes *aif = read_bytearray(aif_filename); - AifData aif_data = {0}; + AifData aif_data; read_aif(aif, &aif_data); int header_size = 0x10; struct Bytes *pcm; - struct Bytes output = {0}; + struct Bytes output; if (compress) { -- cgit v1.2.3 From 9acd55ae4f9e455a92765aaee5929240097f9f8f Mon Sep 17 00:00:00 2001 From: garakmon Date: Sat, 16 Jun 2018 19:20:10 -0400 Subject: re-initializing structs in tools/aif2pcm/main.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit initializing all fields because clang doesn’t understand {0} --- tools/aif2pcm/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/aif2pcm/main.c') diff --git a/tools/aif2pcm/main.c b/tools/aif2pcm/main.c index b6287a1dd..51dbf1bb9 100644 --- a/tools/aif2pcm/main.c +++ b/tools/aif2pcm/main.c @@ -469,12 +469,12 @@ do { \ void aif2pcm(const char *aif_filename, const char *pcm_filename, bool compress) { struct Bytes *aif = read_bytearray(aif_filename); - AifData aif_data; + AifData aif_data = {0,0,0,0,0,0,0}; read_aif(aif, &aif_data); int header_size = 0x10; struct Bytes *pcm; - struct Bytes output; + struct Bytes output = {0,0}; if (compress) { -- cgit v1.2.3