1
0
Fork 0

clutter/deform-effect: Hide G_STATIC_ASSERT from the g-ir-scanner

According to gmacros.h, G_STATIC_ASSERT is undefined for __GI_SCANNER__
because it causes confusion. Which is understandable, and so is the
complaint about the lingering G_STATIC_ASSERT after preprocessing.

This problem seems to be unique to just clutter-deform-effect.h because
it's the only header file containing a top-level G_STATIC_ASSERT. The
rest are all in C files.

Fixes: 138e5d4f54
Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3591
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3898>
This commit is contained in:
Daniel van Vugt 2024-07-23 14:00:22 +08:00
parent eb786b749c
commit 55209cfb13

View file

@ -55,7 +55,10 @@ typedef struct _ClutterTextureVertex
CoglColor color;
} ClutterTextureVertex;
#ifndef __GI_SCANNER__
G_STATIC_ASSERT (sizeof (ClutterTextureVertex) == 24);
#endif
CLUTTER_EXPORT
G_DECLARE_DERIVABLE_TYPE (ClutterDeformEffect,