[PATCH weston v2 5/8] libweston/launcher-weston-launch: Silence unused-function warning

Giulio Camuffo giuliocamuffo at gmail.com
Mon Aug 8 10:19:34 UTC 2016


Hi,

Reviewed-by: Giulio Camuffo <giuliocamuffo at gmail.com>

2016-07-10 11:00 GMT+02:00 Quentin Glidic <sardemff7+wayland at sardemff7.net>:
> From: Quentin Glidic <sardemff7+git at sardemff7.net>
>
> 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 <sardemff7+git at sardemff7.net>
> ---
>
> (Oops, deleted a whitespace noise chunk manually, may not apply cleanly)
>
>  libweston/launcher-weston-launch.c | 17 +----------------
>  1 file changed, 1 insertion(+), 16 deletions(-)
>
> diff --git a/libweston/launcher-weston-launch.c b/libweston/launcher-weston-launch.c
> index ad919f1..0b919d8 100644
> --- a/libweston/launcher-weston-launch.c
> +++ b/libweston/launcher-weston-launch.c
> @@ -54,15 +54,6 @@
>
>  #include <xf86drm.h>
>
> -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
> @@ -77,12 +68,6 @@ drmSetMaster(int drm_fd)
>         return 0;
>  }
>
> -static inline int
> -is_drm_master(int drm_fd)
> -{
> -       return 0;
> -}
> -
>  #endif
>
>
> --
> 2.9.0
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list