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:
parent
eb786b749c
commit
55209cfb13
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue