summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4685845)
raw | patch | inline | side by side (parent: 4685845)
author | Timo Hirvonen <tihirvon@gmail.com> | |
Wed, 17 May 2006 15:57:14 +0000 (17:57 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Wed, 17 May 2006 16:03:55 +0000 (18:03 +0200) |
Fixes tig.c|898| warning: 'steps' may be used uninitialized in this function
tig.c | patch | blob | history |
index c4d7589f1b850aa73814a5ee63d9a7730789f715..c3ed1f170efe69eb6e73fc12c15674c0e94786e7 100644 (file)
--- a/tig.c
+++ b/tig.c
* Main
*/
-static void
+#if __GNUC__ >= 3
+#define __NORETURN __attribute__((__noreturn__))
+#else
+#define __NORETURN
+#endif
+
+static void __NORETURN
quit(int sig)
{
/* XXX: Restore tty modes and let the OS cleanup the rest! */
exit(0);
}
-static void die(const char *err, ...)
+static void __NORETURN die(const char *err, ...)
{
va_list args;