From d0eab7dae887dd75a33cfbb4c5a60f535d7fece3 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 7 Dec 2019 21:40:24 +0200 Subject: [PATCH] deal with some gcc7+ warnings --- cpu/cyclone | 2 +- pico/cd/cd_image.c | 4 ++++ platform/common/emu.c | 4 ++++ platform/libpicofe | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) 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 -- 2.39.5