- Silence GCC PCD_PRINTBINARY warning since we've been able to since GCC 4.6.

This commit is contained in:
Braden Obrzut 2013-12-13 02:51:15 -05:00
parent f4e9edccb9
commit 10c312f55c
1 changed files with 11 additions and 0 deletions

View File

@ -6796,7 +6796,18 @@ scriptwait:
break;
case PCD_PRINTBINARY:
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ >= 6)))
#define HAS_DIAGNOSTIC_PRAGMA
#endif
#ifdef HAS_DIAGNOSTIC_PRAGMA
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat="
#pragma GCC diagnostic ignored "-Wformat-extra-args"
#endif
work.AppendFormat ("%B", STACK(1));
#ifdef HAS_DIAGNOSTIC_PRAGMA
#pragma GCC diagnostic pop
#endif
--sp;
break;