+2008-06-02 Peter Maydell <pmaydell@chiark.greenend.org.uk>
+
+ * h/prototypes.h: mark adios() as not returning, so gcc
+ can make a better job of avoiding spurious "uninitialized
+ variable" warnings.
+
2008-06-01 Peter Maydell <pmaydell@chiark.greenend.org.uk>
* docs/README.developers: update the bits about doing a
* $Id$
*/
+/* If we're using gcc then give it some information about
+ * functions that abort.
+ */
+#if __GNUC__ > 2
+#define NORETURN __attribute__((__noreturn__)
+#else
+#define NORETURN
+#endif
+
/*
* missing system prototypes
*/
/*
* prototypes from the nmh subroutine library
*/
-void adios (char *, char *, ...);
+void adios (char *, char *, ...) NORETURN;
void admonish (char *, char *, ...);
void advertise (char *, char *, char *, va_list);
void advise (char *, char *, ...);