diff options
author | Michael Catanzaro <mcatanzaro@gnome.org> | 2019-08-06 16:04:46 -0500 |
---|---|---|
committer | Seonah Moon <seonah1.moon@samsung.com> | 2020-02-04 19:57:13 +0900 |
commit | 381bb3351e257711d22fbc81f27e551ea0f88c71 (patch) | |
tree | fcd21c47f33af7e3622515e66f67cc3d97d4399b | |
parent | a4c63790246af7f0e0715ec58045ee0d7d0bd4bd (diff) | |
download | libsoup-381bb3351e257711d22fbc81f27e551ea0f88c71.tar.gz libsoup-381bb3351e257711d22fbc81f27e551ea0f88c71.tar.bz2 libsoup-381bb3351e257711d22fbc81f27e551ea0f88c71.zip |
Try to silence GTimeVal deprecation warning in public header
Warnings in public headers are unfortunate. :(
Change-Id: I2dc7539be1ae68454263efd3e63d4fba09dd81aa
-rw-r--r-- | libsoup/soup-date.h | 8 |
1 files changed, 8 insertions, 0 deletions
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); |