From 9ffd7840babb5af3e102f85a285b1e71391873e9 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 7 Sep 2023 13:45:59 +0200 Subject: [PATCH] pathpoint: Add G_GNUC_EXTENSION to struct definition This allows compilation with gcc -pedantic. GTKmm uses this as part of their recommended compiler flags. Fixes #6083 --- gsk/gskpathpoint.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gsk/gskpathpoint.h b/gsk/gskpathpoint.h index cee74e6d3f..1881881be5 100644 --- a/gsk/gskpathpoint.h +++ b/gsk/gskpathpoint.h @@ -31,7 +31,9 @@ G_BEGIN_DECLS #define GSK_TYPE_PATH_POINT (gsk_path_point_get_type ()) typedef struct _GskPathPoint GskPathPoint; -struct _GskPathPoint { + +G_GNUC_EXTENSION struct _GskPathPoint +{ /*< private >*/ union { struct {