[PATCH:libX11 1/2] Do not return() after exit().

Alan Coopersmith alan.coopersmith at oracle.com
Sun Jul 19 08:02:24 PDT 2015


On 07/19/15 01:23 AM, Thomas Klausner wrote:
> Signed-off-by: Thomas Klausner <wiz at NetBSD.org>
> ---
>   src/XlibInt.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/XlibInt.c b/src/XlibInt.c
> index 80c1298..bbc5c82 100644
> --- a/src/XlibInt.c
> +++ b/src/XlibInt.c
> @@ -1256,7 +1256,7 @@ int _XDefaultIOError(
>
>   	}
>   	exit(1);
> -        return(0); /* dummy - function should never return */
> +	/*NOTREACHED*/
>   }
>
>
> @@ -1465,7 +1465,7 @@ _XIOError (
>       else
>   	_XDefaultIOError(dpy);
>       exit (1);
> -    return 0;
> +    /*NOTREACHED*/
>   }
>
>
>

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list