From 190f9249cd3971ba70bba0f4c9e2a7725f99853d Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 24 Jul 2024 11:06:25 +0200 Subject: [PATCH] girepository: Make _blob_is_registered_type static inline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This follows the usage in the glib codebase and recommendations at main/docs/toolchain-requirements.md It also fixes a build warning with ancient gcc 4.8: ../girepository/gitypelib-internal.h:202:1: warning: no previous prototype for ‘_blob_is_registered_type’ [-Wmissing-prototypes] --- girepository/gitypelib-internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/girepository/gitypelib-internal.h b/girepository/gitypelib-internal.h index d66e2f068..cb5610ef6 100644 --- a/girepository/gitypelib-internal.h +++ b/girepository/gitypelib-internal.h @@ -198,7 +198,7 @@ typedef enum { #if defined (G_CAN_INLINE) && defined (G_ALWAYS_INLINE) G_ALWAYS_INLINE -inline gboolean +static inline gboolean _blob_is_registered_type (GITypelibBlobType blob_type) { switch (blob_type)