[gtk/dont-always-inline] gsk: Don't the always_inline function attribute




commit 6ab13a6303f49e9d8534ab90a91d70da85248038
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jul 31 13:13:46 2020 -0400

    gsk: Don't the always_inline function attribute
    
    Visual C doesn't understand it, and the compiler
    should know better, anyway.

 gsk/gl/gskglrenderer.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index e2e5d85320..eb503ecdd5 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -191,7 +191,7 @@ dump_node (GskRenderNode *node,
   cairo_surface_destroy (surface);
 }
 
-static inline bool G_GNUC_PURE __attribute__((always_inline))
+static inline bool G_GNUC_PURE
 node_is_invisible (const GskRenderNode *node)
 {
   return node->bounds.size.width == 0.0f ||
@@ -200,7 +200,7 @@ node_is_invisible (const GskRenderNode *node)
          isnan (node->bounds.size.height);
 }
 
-static inline bool G_GNUC_PURE __attribute__((always_inline))
+static inline bool G_GNUC_PURE
 graphene_rect_intersects (const graphene_rect_t *r1,
                           const graphene_rect_t *r2)
 {
@@ -216,7 +216,7 @@ graphene_rect_intersects (const graphene_rect_t *r1,
   return true;
 }
 
-static inline bool G_GNUC_PURE __attribute__((always_inline))
+static inline bool G_GNUC_PURE
 _graphene_rect_contains_rect (const graphene_rect_t *r1,
                               const graphene_rect_t *r2)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]