Fix the generated gobject headers

These headers are not acceptable to modern compilers.
gcc says things like:

/usr/include/harfbuzz/hb-gobject-enums.h💯1: warning:
  function declaration isn’t a prototype [-Wstrict-prototypes]
  100 | hb_gobject_ot_metrics_tag_get_type () G_GNUC_CONST;
This commit is contained in:
Matthias Clasen 2022-06-11 15:50:37 -04:00 committed by Behdad Esfahbod
parent 79bb3b5278
commit 4ba7980b8e
1 changed files with 1 additions and 1 deletions

View File

@ -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 ***/