aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/main.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-02-07 02:32:50 +0100
committerGitHub <noreply@github.com>2018-02-07 02:32:50 +0100
commit538361955d123d9c93387f7597303c0ef59c6825 (patch)
treeda1fb4713917fd39fe6c3df2b06fc40a8d7ff71e /src/nvim/main.c
parentb1412dc412e1308806ff65281d3dc29c1ffc7bdf (diff)
downloadrneovim-538361955d123d9c93387f7597303c0ef59c6825.tar.gz
rneovim-538361955d123d9c93387f7597303c0ef59c6825.tar.bz2
rneovim-538361955d123d9c93387f7597303c0ef59c6825.zip
exit: annotate FUNC_ATTR_NORETURN functions #7954 (#7954)
This should fix a particular false positive from clang 5.0.0 scan-build, which thinks that nlua_init() can continue after preserve_exit().
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r--src/nvim/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index 3402e2bebc..4fd55f1491 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -577,8 +577,9 @@ int main(int argc, char **argv)
return 0;
}
-/* Exit properly */
+/// Exit properly
void getout(int exitval)
+ FUNC_ATTR_NORETURN
{
tabpage_T *tp, *next_tp;