summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
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 /mbbsd/mbbsd.c
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 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 33277405..5a928602 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -169,6 +169,10 @@ abort_bbs(int sig)
exit(0);
}
+#ifdef GCC_NORETURN
+static void abort_bbs_debug(int sig) GCC_NORETURN;
+#endif
+
static void
abort_bbs_debug(int sig)
{