From 381bb3351e257711d22fbc81f27e551ea0f88c71 Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Tue, 6 Aug 2019 16:04:46 -0500 Subject: Try to silence GTimeVal deprecation warning in public header Warnings in public headers are unfortunate. :( Change-Id: I2dc7539be1ae68454263efd3e63d4fba09dd81aa --- libsoup/soup-date.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libsoup/soup-date.h b/libsoup/soup-date.h index c6414c16..d173300e 100644 --- a/libsoup/soup-date.h +++ b/libsoup/soup-date.h @@ -58,9 +58,17 @@ char *soup_date_to_string (SoupDate *date, SoupDateFormat format); SOUP_AVAILABLE_IN_2_24 time_t soup_date_to_time_t (SoupDate *date); + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif SOUP_AVAILABLE_IN_2_24 void soup_date_to_timeval (SoupDate *date, GTimeVal *time); +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif SOUP_AVAILABLE_IN_2_24 gboolean soup_date_is_past (SoupDate *date); -- cgit v1.2.3