Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external Use __dead
details: https://anonhg.NetBSD.org/src/rev/fb24660025c1
branches: trunk
changeset: 769628:fb24660025c1
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Sep 16 16:09:03 2011 +0000
description:
Use __dead
diffstat:
external/bsd/libevent/dist/log.h | 6 +++---
external/bsd/libpcap/dist/gencode.c | 4 ++--
external/bsd/libpcap/dist/grammar.y | 2 +-
external/historical/nawk/dist/main.c | 2 +-
external/historical/nawk/dist/proto.h | 4 ++--
5 files changed, 9 insertions(+), 9 deletions(-)
diffs (80 lines):
diff -r 1827fabc3501 -r fb24660025c1 external/bsd/libevent/dist/log.h
--- a/external/bsd/libevent/dist/log.h Fri Sep 16 16:06:23 2011 +0000
+++ b/external/bsd/libevent/dist/log.h Fri Sep 16 16:09:03 2011 +0000
@@ -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@localhost>
* All rights reserved.
@@ -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);
diff -r 1827fabc3501 -r fb24660025c1 external/bsd/libpcap/dist/gencode.c
--- a/external/bsd/libpcap/dist/gencode.c Fri Sep 16 16:06:23 2011 +0000
+++ b/external/bsd/libpcap/dist/gencode.c Fri Sep 16 16:09:03 2011 +0000
@@ -378,8 +378,8 @@
return b;
}
-static inline void
-syntax()
+__dead static inline void
+syntax(void)
{
bpf_error("syntax error in filter expression");
}
diff -r 1827fabc3501 -r fb24660025c1 external/bsd/libpcap/dist/grammar.y
--- a/external/bsd/libpcap/dist/grammar.y Fri Sep 16 16:06:23 2011 +0000
+++ b/external/bsd/libpcap/dist/grammar.y Fri Sep 16 16:09:03 2011 +0000
@@ -159,7 +159,7 @@
static struct qual qerr = { Q_UNDEF, Q_UNDEF, Q_UNDEF, Q_UNDEF };
-static void
+__dead static void
yyerror(const char *msg)
{
++n_errors;
diff -r 1827fabc3501 -r fb24660025c1 external/historical/nawk/dist/main.c
--- a/external/historical/nawk/dist/main.c Fri Sep 16 16:06:23 2011 +0000
+++ b/external/historical/nawk/dist/main.c Fri Sep 16 16:09:03 2011 +0000
@@ -71,7 +71,7 @@
return NULL;
}
-static void fpecatch(int n
+__dead static void fpecatch(int n
#ifdef SA_SIGINFO
, siginfo_t *si, void *uc
#endif
diff -r 1827fabc3501 -r fb24660025c1 external/historical/nawk/dist/proto.h
--- a/external/historical/nawk/dist/proto.h Fri Sep 16 16:06:23 2011 +0000
+++ b/external/historical/nawk/dist/proto.h Fri Sep 16 16:09:03 2011 +0000
@@ -46,7 +46,7 @@
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 *);
@@ -137,7 +137,7 @@
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)));
Home |
Main Index |
Thread Index |
Old Index