From: notaz Date: Sat, 7 Dec 2019 19:40:24 +0000 (+0200) Subject: deal with some gcc7+ warnings X-Git-Tag: v2.00~668^2~2 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0eab7dae887dd75a33cfbb4c5a60f535d7fece3;p=picodrive.git deal with some gcc7+ warnings --- diff --git a/cpu/cyclone b/cpu/cyclone index 5fc93bdd..94a9d9a8 160000 --- a/cpu/cyclone +++ b/cpu/cyclone @@ -1 +1 @@ -Subproject commit 5fc93bddb71461abb7619cf506d6f15ba8a675f3 +Subproject commit 94a9d9a888e72cbfa4db12113cd113cf5e154f7f diff --git a/pico/cd/cd_image.c b/pico/cd/cd_image.c index ae2ef0cd..5638c9be 100644 --- a/pico/cd/cd_image.c +++ b/pico/cd/cd_image.c @@ -11,6 +11,10 @@ #include "cdd.h" #include "cue.h" +#if defined(__GNUC__) && __GNUC__ >= 7 +#pragma GCC diagnostic ignored "-Wformat-truncation" +#endif + static int handle_mp3(const char *fname, int index) { track_t *track = &cdd.toc.tracks[index]; diff --git a/platform/common/emu.c b/platform/common/emu.c index 0a9f0890..7385e159 100644 --- a/platform/common/emu.c +++ b/platform/common/emu.c @@ -28,6 +28,10 @@ #include #include +#if defined(__GNUC__) && __GNUC__ >= 7 +#pragma GCC diagnostic ignored "-Wformat-truncation" +#endif + #ifndef _WIN32 #define PATH_SEP "/" #define PATH_SEP_C '/' diff --git a/platform/libpicofe b/platform/libpicofe index f8cd6a08..795b71c5 160000 --- a/platform/libpicofe +++ b/platform/libpicofe @@ -1 +1 @@ -Subproject commit f8cd6a082bb9c228397a0436f28818b74d8e9636 +Subproject commit 795b71c571518b310a22138141bb6d1cd08d85f6