diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-19 20:18:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-19 20:18:50 +0300 |
commit | 98f4fcb5ba1819ace7cfe6ad4ac9fdc4e7754ba9 (patch) | |
tree | a02c83fefe9a8a9be0931f690accb8128bcb36f5 /src/map | |
parent | fd7cd2c4b768745ef711c0b28b0c7b03ac57e486 (diff) | |
download | hercules-98f4fcb5ba1819ace7cfe6ad4ac9fdc4e7754ba9.tar.gz hercules-98f4fcb5ba1819ace7cfe6ad4ac9fdc4e7754ba9.tar.bz2 hercules-98f4fcb5ba1819ace7cfe6ad4ac9fdc4e7754ba9.tar.xz hercules-98f4fcb5ba1819ace7cfe6ad4ac9fdc4e7754ba9.zip |
Add noreturn attributes.
Also add compiler flag for check for missing noreturn attributes.
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/chrif.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index 412d8d36a..4de82ef07 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -110,7 +110,9 @@ struct chrif_interface *chrif; #define chrif_check(a) do { if(!chrif->isconnected()) return a; } while(0) /// Resets all the data. -void chrif_reset(void) { +void chrif_reset(void) __attribute__ ((noreturn)); +void chrif_reset(void) +{ // TODO kick everyone out and reset everything [FlavioJS] exit(EXIT_FAILURE); } |