[PATCH 3/9] ephyr: Fix dead code warning.

walter harms wharms at bfs.de
Sun Aug 18 06:27:45 PDT 2013


screens is dead ?

re,
 wh

Am 18.08.2013 00:36, schrieb Eric Anholt:
> ---
>  hw/kdrive/ephyr/ephyrhostglx.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/hw/kdrive/ephyr/ephyrhostglx.c b/hw/kdrive/ephyr/ephyrhostglx.c
> index 6a4392f..5ecb02d 100644
> --- a/hw/kdrive/ephyr/ephyrhostglx.c
> +++ b/hw/kdrive/ephyr/ephyrhostglx.c
> @@ -274,7 +274,6 @@ ephyrHostGLXGetVisualConfigsInternal(enum VisualConfRequestType a_type,
>      xGLXGetVisualConfigsReply reply;
>      char *server_glx_version = NULL, *server_glx_extensions = NULL;
>      int j = 0,
> -        screens = 0,
>          major_opcode = 0,
>          num_props = 0,
>          num_visuals = 0, props_buf_size = 0, props_per_visual_size = 0;
> @@ -282,7 +281,6 @@ ephyrHostGLXGetVisualConfigsInternal(enum VisualConfRequestType a_type,
>  
>      EPHYR_RETURN_VAL_IF_FAIL(dpy, FALSE);
>  
> -    screens = ScreenCount(dpy);
>      if (!ephyrHostGLXGetMajorOpcode(&major_opcode)) {
>          EPHYR_LOG_ERROR("failed to get opcode\n");
>          goto out;


More information about the xorg-devel mailing list