diff dmd/mars.h @ 1586:7f728c52e63c

Fix several 'reaches end of function' warnings by making fatal noreturn. The warnings also pointed out a few genuine bugs. Replace some tabs with spaces.
author Christian Kamm <kamm incasoftware de>
date Fri, 06 Nov 2009 21:51:41 +0100
parents d9c5f5a43403
children def7a1d494fd
line wrap: on
line diff
--- a/dmd/mars.h	Thu Oct 22 13:30:30 2009 +0200
+++ b/dmd/mars.h	Fri Nov 06 21:51:41 2009 +0100
@@ -412,7 +412,12 @@
 void vwarning(Loc loc, const char *format, va_list);
 void error(Loc loc, const char *format, ...) IS_PRINTF(2);
 void verror(Loc loc, const char *format, va_list);
+
+#ifdef __GNUC__
+__attribute__((noreturn))
+#endif
 void fatal();
+
 void err_nomem();
 void inifile(char *argv0, const char *inifile);
 void halt();