Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

misc: Suppress -Wformat-security when building with GCC7

Making splash -> splashf means its arguments are now checked
at compile time, but the "format" is nearly
always one of our virtual pointers instead of a string/format
literal.

Our gcc494 (and upcoming gcc950) toolchains handle this fine,
but simulator builds with gcc7 complain about this, so suppress
the warning for those environments.

(GCC 12, GCC 14, and GCC15 all seem to be okay with this too)

Change-Id: Ifaf061f14e2552db73a7515f61950ad83116e8b5

+1 -1
+1 -1
firmware/include/gcc_extensions.h
··· 24 24 /* Support for some GCC extensions */ 25 25 26 26 /* Compile time check of format for printf/scanf like functions */ 27 - #ifdef __GNUC__ 27 + #ifdef __GNUC__ && __GNUC__ != 7 28 28 #define ATTRIBUTE_PRINTF(fmt, arg1) __attribute__( ( format( printf, fmt, arg1 ) ) ) 29 29 #define ATTRIBUTE_SCANF(fmt, arg1) __attribute__( ( format( scanf, fmt, arg1 ) ) ) 30 30 #else