diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2009-01-06 23:39:28 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2009-01-06 23:39:28 +0000 |
commit | a5061bc7b92b8e0047c1c8b8c22fb5446b859a1b (patch) | |
tree | 0b8f38d261c30063e0201f4a9f03b24d97a32acc /sim/common | |
parent | 4b91d20df87a5bbdf4d0921548e43a3a9d859fde (diff) | |
download | gdb-a5061bc7b92b8e0047c1c8b8c22fb5446b859a1b.tar.gz |
* callback.c (os_error): Mark as being a noreturn function.
* sim-io.h (sim_io_error): Similar for sim_io_error.
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/ChangeLog | 5 | ||||
-rw-r--r-- | sim/common/callback.c | 6 | ||||
-rw-r--r-- | sim/common/sim-io.h | 4 |
3 files changed, 13 insertions, 2 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 4ecc04b3454..031c4c799cc 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +2009-01-07 Hans-Peter Nilsson <hp@axis.com> + + * callback.c (os_error): Mark as being a noreturn function. + * sim-io.h (sim_io_error): Similar for sim_io_error. + 2008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com> * aclocal.m4: Fix underquoting of function names. diff --git a/sim/common/callback.c b/sim/common/callback.c index 6134055281b..5e72bd36861 100644 --- a/sim/common/callback.c +++ b/sim/common/callback.c @@ -91,7 +91,11 @@ static int os_get_errno PARAMS ((host_callback *)); static int os_close PARAMS ((host_callback *, int)); static void os_vprintf_filtered PARAMS ((host_callback *, const char *, va_list)); static void os_evprintf_filtered PARAMS ((host_callback *, const char *, va_list)); -static void os_error PARAMS ((host_callback *, const char *, ...)); +static void os_error PARAMS ((host_callback *, const char *, ...)) +#ifdef __GNUC__ + __attribute__ ((__noreturn__)) +#endif + ; static int fdmap PARAMS ((host_callback *, int)); static int fdbad PARAMS ((host_callback *, int)); static int wrap PARAMS ((host_callback *, int)); diff --git a/sim/common/sim-io.h b/sim/common/sim-io.h index 6dfbeef4cd1..04aa3155a5c 100644 --- a/sim/common/sim-io.h +++ b/sim/common/sim-io.h @@ -75,7 +75,9 @@ void sim_io_evprintf (SIM_DESC sd, const char *fmt, va_list ap); void sim_io_error (SIM_DESC sd, const char *fmt, - ...) __attribute__ ((format (printf, 2, 3))); + ...) + __attribute__ ((format (printf, 2, 3))) + __attribute__ ((__noreturn__)); void sim_io_poll_quit (SIM_DESC sd); |