[poppler] glib/poppler-attachment.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Oct 21 21:02:06 UTC 2019


 glib/poppler-attachment.h |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit b35a585063723a5ed3cd592ce907fe605678d1bd
Author: Simon McVittie <smcv at debian.org>
Date:   Fri Oct 4 09:08:18 2019 +0100

    Silence deprecation warnings for PopplerAttachment->ctime, ->mtime
    
    GTime is not Y2038-safe, and is now marked as deprecated. Don't trigger
    deprecation warnings for projects that include poppler headers but
    do not otherwise use GTime.
    
    Part of #765.
    
    Signed-off-by: Simon McVittie <smcv at debian.org>

diff --git a/glib/poppler-attachment.h b/glib/poppler-attachment.h
index 5a8a7e08..03b83952 100644
--- a/glib/poppler-attachment.h
+++ b/glib/poppler-attachment.h
@@ -54,6 +54,8 @@ typedef gboolean (*PopplerAttachmentSaveFunc) (const gchar  *buf,
 					       gpointer      data,
 					       GError      **error);
 
+/* GTime is deprecated, but is part of our ABI here (see #715, #765). */
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 struct _PopplerAttachment
 {
   GObject parent;
@@ -65,6 +67,7 @@ struct _PopplerAttachment
   GTime ctime;
   GString *checksum;
 };
+G_GNUC_END_IGNORE_DEPRECATIONS
 
 typedef struct _PopplerAttachmentClass
 {


More information about the poppler mailing list