From e57a52e7f793a815f5b635b3751112d4c6f9302b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 15 Dec 2020 13:49:42 +0100 Subject: [PATCH] Remove inline keyword The compiler is smarter at figuring out whether a function should be inlined or not. --- backend/drm/util.c | 2 +- xwayland/xwm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/drm/util.c b/backend/drm/util.c index 86d66be4..b926e118 100644 --- a/backend/drm/util.c +++ b/backend/drm/util.c @@ -221,7 +221,7 @@ uint32_t get_fb_for_bo(struct gbm_bo *bo, bool with_modifiers) { return id; } -static inline bool is_taken(size_t n, const uint32_t arr[static n], uint32_t key) { +static bool is_taken(size_t n, const uint32_t arr[static n], uint32_t key) { for (size_t i = 0; i < n; ++i) { if (arr[i] == key) { return true; diff --git a/xwayland/xwm.c b/xwayland/xwm.c index f258ab00..781bf15d 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -1165,7 +1165,7 @@ static bool update_state(int action, bool *state) { return changed; } -static inline bool xsurface_is_maximized( +static bool xsurface_is_maximized( struct wlr_xwayland_surface *xsurface) { return xsurface->maximized_horz && xsurface->maximized_vert; }