From ee27744efd62e42fd25b1186aa50c252a3aea3a0 Mon Sep 17 00:00:00 2001 From: Quentin Glidic Date: Sun, 10 Jul 2016 11:00:54 +0200 Subject: [PATCH] libweston/launcher-weston-launch: Silence unused-function warning libweston/launcher-weston-launch.c:58:1: warning: unused function 'is_drm_master' [-Wunused-function] is_drm_master(int drm_fd) ^ Warning produced by Clang 3.8. Signed-off-by: Quentin Glidic Reviewed-by: Giulio Camuffo --- libweston/launcher-weston-launch.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/libweston/launcher-weston-launch.c b/libweston/launcher-weston-launch.c index 96ac25ad..f3e3a24d 100644 --- a/libweston/launcher-weston-launch.c +++ b/libweston/launcher-weston-launch.c @@ -55,15 +55,6 @@ #include -static inline int -is_drm_master(int drm_fd) -{ - drm_magic_t magic; - - return drmGetMagic(drm_fd, &magic) == 0 && - drmAuthMagic(drm_fd, magic) == 0; -} - #else static inline int @@ -78,12 +69,6 @@ drmSetMaster(int drm_fd) return 0; } -static inline int -is_drm_master(int drm_fd) -{ - return 0; -} - #endif