volatile void func(decl) -> void func(decl) __attribute__((__noreturn__))

to appease gcc4.
This commit is contained in:
tsutsui 2006-06-27 10:53:11 +00:00
parent d700257e96
commit d03388424c
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: binpatch.c,v 1.10 2002/12/10 17:14:05 thorpej Exp $ */ /* $NetBSD: binpatch.c,v 1.11 2006/06/27 10:53:11 tsutsui Exp $ */
/* Author: Markus Wild mw@eunet.ch ??? */ /* Author: Markus Wild mw@eunet.ch ??? */
/* Modified: Rob Leland leland@mitre.org */ /* Modified: Rob Leland leland@mitre.org */
@ -74,7 +74,7 @@ static char desusage[] =
extern char *optarg; extern char *optarg;
extern int optind; extern int optind;
volatile void error (char *); void error (char *) __attribute__((__noreturn__));
static void Synopsis(char *program_name); static void Synopsis(char *program_name);
static void Usage(char *program_name); static void Usage(char *program_name);
static u_long FindAssign(char *symbol,u_long *rvalue); static u_long FindAssign(char *symbol,u_long *rvalue);
@ -315,7 +315,7 @@ main(int argc, char *argv[])
volatile void error (char *str) void error (char *str)
{ {
fprintf (stderr, "%s\n", str); fprintf (stderr, "%s\n", str);
exit (1); exit (1);