From 4ba7980b8eb2144f114054751c94c45fd8f61263 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 11 Jun 2022 15:50:37 -0400 Subject: [PATCH] Fix the generated gobject headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These headers are not acceptable to modern compilers. gcc says things like: /usr/include/harfbuzz/hb-gobject-enums.h:100:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] 100 | hb_gobject_ot_metrics_tag_get_type () G_GNUC_CONST; --- src/hb-gobject-enums.h.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-gobject-enums.h.tmpl b/src/hb-gobject-enums.h.tmpl index a8467868b..6dd98f7fe 100644 --- a/src/hb-gobject-enums.h.tmpl +++ b/src/hb-gobject-enums.h.tmpl @@ -43,7 +43,7 @@ HB_BEGIN_DECLS /*** BEGIN value-header ***/ HB_EXTERN GType -@enum_name@_get_type () G_GNUC_CONST; +@enum_name@_get_type (void) G_GNUC_CONST; #define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ()) /*** END value-header ***/