Skip to content

Commit

Permalink
Use __dead
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonn committed Sep 16, 2011
1 parent 7bba950 commit f532a3c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions external/bsd/libevent/dist/log.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: log.h,v 1.1.1.1 2009/11/02 10:01:01 plunky Exp $ */
/* $NetBSD: log.h,v 1.2 2011/09/16 16:09:03 joerg Exp $ */
/*
* Copyright (c) 2000-2004 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
Expand Down Expand Up @@ -34,9 +34,9 @@
#define EV_CHECK_FMT(a,b)
#endif

void event_err(int eval, const char *fmt, ...) EV_CHECK_FMT(2,3);
__dead void event_err(int eval, const char *fmt, ...) EV_CHECK_FMT(2,3);
void event_warn(const char *fmt, ...) EV_CHECK_FMT(1,2);
void event_errx(int eval, const char *fmt, ...) EV_CHECK_FMT(2,3);
__dead void event_errx(int eval, const char *fmt, ...) EV_CHECK_FMT(2,3);
void event_warnx(const char *fmt, ...) EV_CHECK_FMT(1,2);
void event_msgx(const char *fmt, ...) EV_CHECK_FMT(1,2);
void _event_debugx(const char *fmt, ...) EV_CHECK_FMT(1,2);
Expand Down
4 changes: 2 additions & 2 deletions external/bsd/libpcap/dist/gencode.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,8 @@ gen_retblk(v)
return b;
}

static inline void
syntax()
__dead static inline void
syntax(void)
{
bpf_error("syntax error in filter expression");
}
Expand Down
2 changes: 1 addition & 1 deletion external/bsd/libpcap/dist/grammar.y
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ int n_errors = 0;

static struct qual qerr = { Q_UNDEF, Q_UNDEF, Q_UNDEF, Q_UNDEF };

static void
__dead static void
yyerror(const char *msg)
{
++n_errors;
Expand Down
2 changes: 1 addition & 1 deletion external/historical/nawk/dist/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ setfs(char *p)
return NULL;
}

static void fpecatch(int n
__dead static void fpecatch(int n
#ifdef SA_SIGINFO
, siginfo_t *si, void *uc
#endif
Expand Down
4 changes: 2 additions & 2 deletions external/historical/nawk/dist/proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ extern void freetr(Node *);
extern int hexstr(const uschar **);
extern int quoted(const uschar **);
extern char *cclenter(const char *);
extern void overflo(const char *);
extern void overflo(const char *) __dead;
extern void cfoll(fa *, Node *);
extern int first(Node *);
extern void follow(Node *);
Expand Down Expand Up @@ -137,7 +137,7 @@ extern void bracecheck(void);
extern void bcheck2(int, int, int);
extern void SYNTAX(const char *, ...)
__attribute__((__format__(__printf__, 1, 2)));
extern void FATAL(const char *, ...)
extern void FATAL(const char *, ...) __dead
__attribute__((__format__(__printf__, 1, 2)));
extern void WARNING(const char *, ...)
__attribute__((__format__(__printf__, 1, 2)));
Expand Down

0 comments on commit f532a3c

Please sign in to comment.