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 | 2a8922a97b4524fa1d95c1947215bc681b6f2962 (patch) | |
tree | 34b8ccae2f2666963959667e4025c2772d0603c5 /sim/common/callback.c | |
parent | ec383c736ce5a058ba7f0b55099d5fa9af046222 (diff) | |
download | gdb-2a8922a97b4524fa1d95c1947215bc681b6f2962.zip gdb-2a8922a97b4524fa1d95c1947215bc681b6f2962.tar.gz gdb-2a8922a97b4524fa1d95c1947215bc681b6f2962.tar.bz2 |
* 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/callback.c')
-rw-r--r-- | sim/common/callback.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sim/common/callback.c b/sim/common/callback.c index 6134055..5e72bd3 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)); |