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/Hpc.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/Hpc.c')
-rw-r--r-- | rts/Hpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -45,7 +45,7 @@ HpcModuleInfo *modules = 0; static char *tixFilename = NULL; -static void GNU_ATTRIBUTE(__noreturn__) +static void STG_NORETURN failure(char *msg) { debugTrace(DEBUG_hpc,"hpc failure: %s\n",msg); fprintf(stderr,"Hpc failure: %s\n",msg); |