diff options
author | Nicolas Trangez <ikke@nicolast.be> | 2022-10-30 20:29:52 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-11-02 12:06:48 -0400 |
commit | 6b400d264647207d3217fd5af45a4b20c4d402d4 (patch) | |
tree | 9d246dce3b70e66e941f50a9ebf848a4e80a3b7e /rts/Linker.c | |
parent | 4521f6498d09f48a775a028efdd763c874da3451 (diff) | |
download | haskell-6b400d264647207d3217fd5af45a4b20c4d402d4.tar.gz |
rts: introduce (and use) `STG_NORETURN`
Instead of sprinkling the codebase with
`GNU(C3)_ATTRIBUTE(__noreturn__)`, add a `STG_NORETURN` macro (for,
basically, the same thing) similar to `STG_UNUSED` and others, and
update the code to use this macro where applicable.
Diffstat (limited to 'rts/Linker.c')
-rw-r--r-- | rts/Linker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/Linker.c b/rts/Linker.c index 12d5418d02..3121cc38df 100644 --- a/rts/Linker.c +++ b/rts/Linker.c @@ -1971,7 +1971,7 @@ void * loadNativeObj (pathchar *path, char **errmsg) return r; } #else -void * GNU_ATTRIBUTE(__noreturn__) +void * STG_NORETURN loadNativeObj (pathchar *path, char **errmsg) { UNUSED(path); |