dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] error: Remove USE_NORETURN ifdef
@ 2020-06-02 11:52 Herbert Xu
  0 siblings, 0 replies; only message in thread
From: Herbert Xu @ 2020-06-02 11:52 UTC (permalink / raw)
  To: dash

The USE_NORETURN was added because gcc was buggy almost 20 years
ago.  This is no longer needed and this patch removes it.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

diff --git a/src/error.h b/src/error.h
index 94e30a2..661a8a0 100644
--- a/src/error.h
+++ b/src/error.h
@@ -116,11 +116,7 @@ void __inton(void);
 #define int_pending() intpending
 
 void exraise(int) __attribute__((__noreturn__));
-#ifdef USE_NORETURN
 void onint(void) __attribute__((__noreturn__));
-#else
-void onint(void);
-#endif
 extern int errlinno;
 void sh_error(const char *, ...) __attribute__((__noreturn__));
 void exerror(int, const char *, ...) __attribute__((__noreturn__));
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-02 11:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-02 11:52 [PATCH] error: Remove USE_NORETURN ifdef Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).