From e31e0316aa7f776a4ef73467e6f82db73e90a00f Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Tue, 22 Feb 2011 18:02:10 +0000 Subject: [PATCH] Declare E_Exit as noreturn. Makes gcc happy Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3678 --- include/dosbox.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/dosbox.h b/include/dosbox.h index c46cf0a4..37f6f702 100644 --- a/include/dosbox.h +++ b/include/dosbox.h @@ -23,10 +23,10 @@ #include "config.h" -void E_Exit(const char * message,...) GCC_ATTRIBUTE( __format__(__printf__, 1, 2)); +GCC_ATTRIBUTE(noreturn) void E_Exit(const char * message,...) GCC_ATTRIBUTE( __format__(__printf__, 1, 2)); -void MSG_Add(const char*,const char*); //add messages to the internal langaugefile -const char* MSG_Get(char const *); //get messages from the internal langaugafile +void MSG_Add(const char*,const char*); //add messages to the internal languagefile +const char* MSG_Get(char const *); //get messages from the internal languagefile class Section;