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
This commit is contained in:
Benjamin Otte
2023-09-07 13:45:59 +02:00
parent dd64084b44
commit 9ffd7840ba

View File

@@ -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 {