summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/echo/echo.c2
-rw-r--r--bin/sh/mknodes.c2
-rw-r--r--bin/stty/gfmt.c2
-rw-r--r--lib/libarchive/archive_private.h2
-rw-r--r--libexec/fingerd/fingerd.c2
-rw-r--r--usr.bin/cpio/cpio.h2
-rw-r--r--usr.bin/lex/flex.skl3
-rw-r--r--usr.bin/tar/bsdtar.h2
-rw-r--r--usr.bin/yacc/defs.h48
9 files changed, 33 insertions, 32 deletions
diff --git a/bin/echo/echo.c b/bin/echo/echo.c
index 45d9d7e..68ff581 100644
--- a/bin/echo/echo.c
+++ b/bin/echo/echo.c
@@ -55,7 +55,7 @@ __FBSDID("$FreeBSD$");
* Report an error and exit.
* Use it instead of err(3) to avoid linking-in stdio.
*/
-static void
+static __dead2 void
errexit(const char *prog, const char *reason)
{
char *errstr = strerror(errno);
diff --git a/bin/sh/mknodes.c b/bin/sh/mknodes.c
index 53086bd..f0afca6 100644
--- a/bin/sh/mknodes.c
+++ b/bin/sh/mknodes.c
@@ -103,7 +103,7 @@ static void indent(int, FILE *);
static int nextfield(char *);
static void skipbl(void);
static int readline(void);
-static void error(const char *, ...) __printf0like(1, 2);
+static void error(const char *, ...) __printf0like(1, 2) __dead2;
static char *savestr(const char *);
diff --git a/bin/stty/gfmt.c b/bin/stty/gfmt.c
index c35a6fc..339da59 100644
--- a/bin/stty/gfmt.c
+++ b/bin/stty/gfmt.c
@@ -44,7 +44,7 @@ __FBSDID("$FreeBSD$");
#include "stty.h"
#include "extern.h"
-static void gerr(const char *s);
+static void gerr(const char *s) __dead2;
static void
gerr(const char *s)
diff --git a/lib/libarchive/archive_private.h b/lib/libarchive/archive_private.h
index a75489d..87f149f 100644
--- a/lib/libarchive/archive_private.h
+++ b/lib/libarchive/archive_private.h
@@ -92,7 +92,7 @@ struct archive {
void __archive_check_magic(struct archive *, unsigned int magic,
unsigned int state, const char *func);
-void __archive_errx(int retvalue, const char *msg);
+void __archive_errx(int retvalue, const char *msg) __dead2;
#define err_combine(a,b) ((a) < (b) ? (a) : (b))
diff --git a/libexec/fingerd/fingerd.c b/libexec/fingerd/fingerd.c
index 0979c64..7d2a754 100644
--- a/libexec/fingerd/fingerd.c
+++ b/libexec/fingerd/fingerd.c
@@ -62,7 +62,7 @@ static const char rcsid[] =
#include <string.h>
#include "pathnames.h"
-void logerr(const char *, ...) __printflike(1, 2);
+void logerr(const char *, ...) __printflike(1, 2) __dead2;
int
main(int argc, char *argv[])
diff --git a/usr.bin/cpio/cpio.h b/usr.bin/cpio/cpio.h
index 4dce00f..1db7ec1 100644
--- a/usr.bin/cpio/cpio.h
+++ b/usr.bin/cpio/cpio.h
@@ -85,7 +85,7 @@ struct cpio {
/* Name of this program; used in error reporting, initialized in main(). */
const char *cpio_progname;
-void cpio_errc(int _eval, int _code, const char *fmt, ...);
+void cpio_errc(int _eval, int _code, const char *fmt, ...) __dead2;
void cpio_warnc(int _code, const char *fmt, ...);
int owner_parse(const char *, int *, int *);
diff --git a/usr.bin/lex/flex.skl b/usr.bin/lex/flex.skl
index d741652..460b2fa 100644
--- a/usr.bin/lex/flex.skl
+++ b/usr.bin/lex/flex.skl
@@ -9,6 +9,7 @@
#include <sys/cdefs.h>
#else
#define __unused
+#define __dead2
#endif
#define FLEX_SCANNER
@@ -290,7 +291,7 @@ static void yy_flex_free YY_PROTO(( void * ));
static yy_state_type yy_get_previous_state YY_PROTO(( void ));
static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
static int yy_get_next_buffer YY_PROTO(( void ));
-static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
+static void yy_fatal_error YY_PROTO(( yyconst char msg[] )) __dead2;
%*
/* Done after the current pattern has been matched and before the
diff --git a/usr.bin/tar/bsdtar.h b/usr.bin/tar/bsdtar.h
index dbbdbdc..eee53a9 100644
--- a/usr.bin/tar/bsdtar.h
+++ b/usr.bin/tar/bsdtar.h
@@ -103,7 +103,7 @@ struct bsdtar {
};
void bsdtar_errc(struct bsdtar *, int _eval, int _code,
- const char *fmt, ...);
+ const char *fmt, ...) __dead2;
void bsdtar_warnc(struct bsdtar *, int _code, const char *fmt, ...);
void cleanup_exclusions(struct bsdtar *);
void do_chdir(struct bsdtar *);
diff --git a/usr.bin/yacc/defs.h b/usr.bin/yacc/defs.h
index cb8b083..5219e1b 100644
--- a/usr.bin/yacc/defs.h
+++ b/usr.bin/yacc/defs.h
@@ -309,26 +309,26 @@ char *allocate(unsigned);
void closure(short *, int);
void create_symbol_table(void);
void default_action_warning(void);
-void dollar_error(int, char *, char *);
+void dollar_error(int, char *, char *) __dead2;
void dollar_warning(int, int);
-void done(int);
-void fatal(const char *msg);
+void done(int) __dead2;
+void fatal(const char *msg) __dead2;
void finalize_closure(void);
void free_parser(void);
void free_symbols(void);
void free_symbol_table(void);
-void illegal_character(char *);
-void illegal_tag(int, char *, char *);
+void illegal_character(char *) __dead2;
+void illegal_tag(int, char *, char *) __dead2;
void lalr(void);
bucket *lookup(char *);
void lr0(void);
bucket *make_bucket(const char *);
void make_parser(void);
-void no_grammar(void);
-void no_space(void);
-void open_error(const char *);
+void no_grammar(void) __dead2;
+void no_space(void) __dead2;
+void open_error(const char *) __dead2;
void output(void);
-void over_unionized(char *);
+void over_unionized(char *) __dead2;
void prec_redeclared(void);
void reader(void);
void reflexive_transitive_closure(unsigned *, int);
@@ -337,21 +337,21 @@ void restarted_warning(void);
void retyped_warning(char *);
void revalued_warning(char *);
void set_first_derives(void);
-void syntax_error(int, char *, char *);
-void terminal_lhs(int);
-void terminal_start(char *);
-void tokenized_start(char *);
-void undefined_goal(char *);
+void syntax_error(int, char *, char *) __dead2;
+void terminal_lhs(int) __dead2;
+void terminal_start(char *) __dead2;
+void tokenized_start(char *) __dead2;
+void undefined_goal(char *) __dead2;
void undefined_symbol_warning(char *);
-void unexpected_EOF(void);
-void unknown_rhs(int);
-void unterminated_action(int, char *, char *);
-void unterminated_comment(int, char *, char *);
-void unterminated_string(int, char *, char *);
-void unterminated_text(int, char *, char *);
-void unterminated_union(int, char *, char *);
-void untyped_lhs(void);
-void untyped_rhs(int, char *);
-void used_reserved(char *);
+void unexpected_EOF(void) __dead2;
+void unknown_rhs(int) __dead2;
+void unterminated_action(int, char *, char *) __dead2;
+void unterminated_comment(int, char *, char *) __dead2;
+void unterminated_string(int, char *, char *) __dead2;
+void unterminated_text(int, char *, char *) __dead2;
+void unterminated_union(int, char *, char *) __dead2;
+void untyped_lhs(void) __dead2;
+void untyped_rhs(int, char *) __dead2;
+void used_reserved(char *) __dead2;
void verbose(void);
void write_section(const char **);
OpenPOWER on IntegriCloud