From 514a0a7bd76b60eab07e29c0f5e4ae2933ecbd59 Mon Sep 17 00:00:00 2001 From: Francisco Javier Trujillo Mata Date: Thu, 7 Dec 2023 22:34:03 +0100 Subject: [PATCH] Disable warnings timezone --- ee/libcglue/src/timezone.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ee/libcglue/src/timezone.c b/ee/libcglue/src/timezone.c index 00cdb7dc0e12..9928e5cde23b 100644 --- a/ee/libcglue/src/timezone.c +++ b/ee/libcglue/src/timezone.c @@ -42,7 +42,10 @@ void _libcglue_timezone_update() int minutes = tzOffsetAbs - hours * 60; int daylight = configIsDaylightSavingEnabledWithIODriver(&driver); static char tz[15]; + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wformat-overflow" sprintf(tz, "GMT%s%02i:%02i%s", tzOffset < 0 ? "+" : "-", hours, minutes, daylight ? "DST" : ""); + #pragma GCC diagnostic pop setenv("TZ", tz, 1); } #endif