[ghex/gtk4-port: 82/91] hex-document: Silence _get_type warnings




commit dc7c1c3fa6a2f843db6e5751406d7fb69989f7e1
Author: Logan Rathbone <poprocks gmail com>
Date:   Wed Aug 4 12:13:14 2021 -0400

    hex-document: Silence _get_type warnings

 src/hex-document.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/hex-document.c b/src/hex-document.c
index 609bb7e6..8768d107 100644
--- a/src/hex-document.c
+++ b/src/hex-document.c
@@ -412,6 +412,7 @@ hex_document_init (HexDocument *doc)
        doc->undo_max = DEFAULT_UNDO_DEPTH;
 }
 
+/* TODO - reimplement using modern macros. */
 GType
 hex_document_get_type (void)
 {
@@ -422,12 +423,12 @@ hex_document_get_type (void)
                        sizeof (HexDocumentClass),
                        NULL,           /* base_init */
                        NULL,           /* base_finalize */
-                       (GClassInitFunc) hex_document_class_init,
+                       (GClassInitFunc)(void (*)(void)) hex_document_class_init,
                        NULL,           /* class_finalize */
                        NULL,           /* class_data */
                        sizeof (HexDocument),
                        0,
-                       (GInstanceInitFunc) hex_document_init
+                       (GInstanceInitFunc)(void (*)(void)) hex_document_init
                };
        
                doc_type = g_type_register_static (G_TYPE_OBJECT,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]