glamor: make glamor_destroy_gc() static

Only needed inside glamor_core.c, no external callers, so it can be static.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-05-19 17:13:03 +02:00
parent eb173d9a56
commit caec5ae78b
2 changed files with 1 additions and 3 deletions

View File

@ -398,8 +398,6 @@ extern _X_EXPORT int glamor_create_gc(GCPtr gc);
extern _X_EXPORT void glamor_validate_gc(GCPtr gc, unsigned long changes,
DrawablePtr drawable);
extern _X_EXPORT void glamor_destroy_gc(GCPtr gc);
#define HAS_GLAMOR_DESTROY_GC 1
extern Bool _X_EXPORT glamor_change_window_attributes(WindowPtr pWin, unsigned long mask);

View File

@ -248,7 +248,7 @@ glamor_validate_gc(GCPtr gc, unsigned long changes, DrawablePtr drawable)
gc->ops = &glamor_gc_ops;
}
void
static void
glamor_destroy_gc(GCPtr gc)
{
glamor_gc_private *gc_priv = glamor_get_gc_private(gc);