diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-26 01:21:10 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-26 01:21:10 -0700 |
commit | 0bc644abf06d1cf903ed7bf59302894f80d18971 (patch) | |
tree | da229cd4505d34800af22e10c8f61d380d6a88b3 /common.h | |
parent | 31b7d076b7bff8d7bb81e6a1fff58755b7baa10b (diff) |
Fix lots of bugs related to the static analyzer
Improved how screen.cpp interacts with output_set_writer()
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -77,8 +77,8 @@ typedef std::vector<wcstring> wcstring_list_t; */ #define VOMIT_ON_FAILURE(a) do { if (0 != (a)) { int err = errno; fprintf(stderr, "%s failed on line %d in file %s: %d (%s)\n", #a, __LINE__, __FILE__, err, strerror(err)); abort(); }} while (0) -/** Exits without invoking destructors (via _exit), useful for code after fork. This would be a good candidate for __noreturn attribute. */ -void exit_without_destructors(int code); +/** Exits without invoking destructors (via _exit), useful for code after fork. */ +void exit_without_destructors(int code) __attribute__ ((noreturn)); /** Save the shell mode on startup so we can restore them on exit |