[PATCH x11proto] Add _X_NORETURN macro to signify functions that don't return

Alan Coopersmith alan.coopersmith at oracle.com
Sat Mar 27 23:10:04 PDT 2010


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

Jeremy Huddleston wrote:
> Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
> ---
>  Xfuncproto.h.in |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/Xfuncproto.h.in b/Xfuncproto.h.in
> index afdd95b..96a585c 100644
> --- a/Xfuncproto.h.in
> +++ b/Xfuncproto.h.in
> @@ -117,4 +117,10 @@ in this Software without prior written authorization from The Open Group.
>  # define _X_DEPRECATED
>  #endif
>  
> +#if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 205)
> +# define _X_NORETURN __attribute((noreturn))
> +#else
> +# define _X_NORETURN
> +#endif /* GNUC  */
> +
>  #endif /* _XFUNCPROTO_H_ */
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel


-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list