pdbox: Gate the warning suppression to apply only to GCC 13 and newer.

Change-Id: Ie0f39fde5e682f3995ed852417b61ae383c5e23b
This commit is contained in:
Solomon Peachy 2023-05-22 10:28:38 -04:00
parent 3a8d5525ae
commit ab0ba139f5

View file

@ -272,7 +272,9 @@ static int outlet_eventno;
recursion */ recursion */
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds" #pragma GCC diagnostic ignored "-Warray-bounds"
#if __GNUC__ >= 13
#pragma GCC diagnostic ignored "-Wdangling-pointer" #pragma GCC diagnostic ignored "-Wdangling-pointer"
#endif
void outlet_setstacklim(void) void outlet_setstacklim(void)
{ {
char c; char c;