mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
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
This commit is contained in:
parent
622ff574e7
commit
cde144233b
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@
|
|||
/* Support for some GCC extensions */
|
||||
|
||||
/* Compile time check of format for printf/scanf like functions */
|
||||
#ifdef __GNUC__
|
||||
#ifdef __GNUC__ && __GNUC__ != 7
|
||||
#define ATTRIBUTE_PRINTF(fmt, arg1) __attribute__( ( format( printf, fmt, arg1 ) ) )
|
||||
#define ATTRIBUTE_SCANF(fmt, arg1) __attribute__( ( format( scanf, fmt, arg1 ) ) )
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue