From d7492c55da59ea4d29fa8b302a1c20fdae4797e1 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 30 Mar 2009 21:17:56 +0000 Subject: [PATCH] apidef.c: avoid 1 warning * exec/apidef.c (_corosync_public_exit_error): Mark as "noreturn". git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1970 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/apidef.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/exec/apidef.c b/exec/apidef.c index 74904cf8..951a6a14 100644 --- a/exec/apidef.c +++ b/exec/apidef.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008 Red Hat, Inc. + * Copyright (c) 2008, 2009 Red Hat, Inc. * * All rights reserved. * @@ -63,6 +63,10 @@ typedef int (*typedef_tpg_leave) (hdb_handle_t, struct corosync_tpg_group *, int typedef int (*typedef_tpg_groups_mcast) (hdb_handle_t, int, struct corosync_tpg_group *, int groups_cnt, struct iovec *, int); typedef int (*typedef_tpg_groups_send_ok) (hdb_handle_t, struct corosync_tpg_group *, int groups_cnt, struct iovec *, int); +static inline void _corosync_public_exit_error (cs_fatal_error_t err, + const char *file, + unsigned int line) + __attribute__((__noreturn__)); static inline void _corosync_public_exit_error ( cs_fatal_error_t err, const char *file, unsigned int line) {