[libsoup] Try to silence GTimeVal deprecation warning in public header
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] Try to silence GTimeVal deprecation warning in public header
- Date: Tue, 6 Aug 2019 21:06:03 +0000 (UTC)
commit 961e87ff3b9a4e8b6011bfad698aeac44cfdf059
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Tue Aug 6 16:04:46 2019 -0500
Try to silence GTimeVal deprecation warning in public header
Warnings in public headers are unfortunate. :(
libsoup/soup-date.h | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/libsoup/soup-date.h b/libsoup/soup-date.h
index 7dbbc87d..319ed9b9 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]