Add some noreturn attributes for clang.

This commit is contained in:
wiz 2012-04-29 01:26:56 +00:00
parent 4b760398c3
commit e8c42d35c6
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: common.h,v 1.2 2012/04/22 23:26:19 christos Exp $ */
/* $NetBSD: common.h,v 1.3 2012/04/29 01:26:56 wiz Exp $ */
/*-
* Copyright (c) 1980, 1987, 1988, 1991, 1993, 1994
@ -37,10 +37,10 @@ char *trimloginname(char *);
char *getloginname(void);
void motd(const char *);
int rootterm(char *);
void sigint(int);
void sleepexit(int);
void sigint(int) __attribute__((__noreturn__));
void sleepexit(int) __attribute__((__noreturn__));
const char *stypeof(const char *);
void timedout(int);
void timedout(int) __attribute__((__noreturn__));
void decode_ss(const char *);
extern u_int timeout;

View File

@ -1,4 +1,4 @@
/* $NetBSD: login.c,v 1.102 2012/04/23 21:09:27 christos Exp $ */
/* $NetBSD: login.c,v 1.103 2012/04/29 01:26:56 wiz Exp $ */
/*-
* Copyright (c) 1980, 1987, 1988, 1991, 1993, 1994
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1987, 1988, 1991, 1993, 1994\
#if 0
static char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94";
#endif
__RCSID("$NetBSD: login.c,v 1.102 2012/04/23 21:09:27 christos Exp $");
__RCSID("$NetBSD: login.c,v 1.103 2012/04/29 01:26:56 wiz Exp $");
#endif /* not lint */
/*
@ -109,7 +109,7 @@ int k5_write_creds(void);
#if defined(KERBEROS5)
static void dofork(void);
#endif
static void usage(void);
static void usage(void) __attribute__((__noreturn__));
#define TTYGRPNAME "tty" /* name of group to own ttys */