summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-10-12 20:36:42 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-10-12 20:36:42 +0800
commit4372f3f5d8cc32f837f842d28f6e1e88feaf5b9f (patch)
tree8e9092a7f4e27b23ff8fea88bb254af84fa07de0 /include
parent1816ab553493c430db8469566484cd76dcf6c28d (diff)
downloadpttbbs-4372f3f5d8cc32f837f842d28f6e1e88feaf5b9f.tar
pttbbs-4372f3f5d8cc32f837f842d28f6e1e88feaf5b9f.tar.gz
pttbbs-4372f3f5d8cc32f837f842d28f6e1e88feaf5b9f.tar.bz2
pttbbs-4372f3f5d8cc32f837f842d28f6e1e88feaf5b9f.tar.lz
pttbbs-4372f3f5d8cc32f837f842d28f6e1e88feaf5b9f.tar.xz
pttbbs-4372f3f5d8cc32f837f842d28f6e1e88feaf5b9f.tar.zst
pttbbs-4372f3f5d8cc32f837f842d28f6e1e88feaf5b9f.zip
Add __attribute__((__noreturn__)) for the abort functions.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2243 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/proto.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/proto.h b/include/proto.h
index 187f4c90..3a96f45a 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -4,8 +4,10 @@
#ifdef __GNUC__
#define GCC_CHECK_FORMAT(a,b) __attribute__ ((format (printf, a, b)))
+#define GCC_NORETURN __attribute__ ((__noreturn__))
#else
#define GCC_CHECK_FORMAT(a,b)
+#define GCC_NORETURN
#endif
/* admin */
@@ -331,7 +333,7 @@ void show_call_in(int save, int which);
void write_request (int sig);
void log_usies(char *mode, char *mesg);
void system_abort(void);
-void abort_bbs(int sig);
+void abort_bbs(int sig) GCC_NORETURN;
void del_distinct(char *fname, char *line);
void add_distinct(char *fname, char *line);
void u_exit(char *mode);