From 45a947d226c5d81c2fc8b8d716c9b014d86f4113 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Thu, 27 May 2010 13:28:43 +0100 Subject: [PATCH] analysis: Use static functions when possible It's best to ensure the functions only used in one compilation unit are marked as static so GCC can inline them if it feels like it. --- cogl/cogl-clip-stack.c | 2 +- cogl/cogl-clip-state.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cogl/cogl-clip-stack.c b/cogl/cogl-clip-stack.c index 87a216378..946790e9f 100644 --- a/cogl/cogl-clip-stack.c +++ b/cogl/cogl-clip-stack.c @@ -285,7 +285,7 @@ set_clip_planes (float x_1, } } -void +static void add_stencil_clip_rectangle (float x_1, float y_1, float x_2, diff --git a/cogl/cogl-clip-state.c b/cogl/cogl-clip-state.c index 41ad06237..bb8ec1ee5 100644 --- a/cogl/cogl-clip-state.c +++ b/cogl/cogl-clip-state.c @@ -118,7 +118,7 @@ transform_point (CoglMatrix *matrix_mv, /* Try to push a rectangle given in object coordinates as a rectangle in window * coordinates instead of object coordinates */ -gboolean +static gboolean try_pushing_rect_as_window_rect (float x_1, float y_1, float x_2,