summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bf17418)
raw | patch | inline | side by side (parent: bf17418)
author | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 6 Jun 2006 22:26:27 +0000 (00:26 +0200) | ||
committer | Jonas Fonseca Madsen <fonseca@ask.diku.dk> | |
Tue, 6 Jun 2006 22:26:27 +0000 (00:26 +0200) |
Avoids warnings with gcc 3.3.5.
tig.c | patch | blob | history |
index b827a9292563ccbf1f1cc07a21291834e82e50ed..027a8b766395e1cea6151b223ad8e50a5a8640db 100644 (file)
--- a/tig.c
+++ b/tig.c
#include <curses.h>
-static void die(const char *err, ...);
+#if __GNUC__ >= 3
+#define __NORETURN __attribute__((__noreturn__))
+#else
+#define __NORETURN
+#endif
+
+static void __NORETURN die(const char *err, ...);
static void report(const char *msg, ...);
static int read_properties(FILE *pipe, const char *separators, int (*read)(char *, int, char *, int));
static void set_nonblocking_input(bool loading);
* Main
*/
-#if __GNUC__ >= 3
-#define __NORETURN __attribute__((__noreturn__))
-#else
-#define __NORETURN
-#endif
-
static void __NORETURN
quit(int sig)
{