From bb258a5b72a0237a0439d92ad360f5bfbcd8095e Mon Sep 17 00:00:00 2001 From: wang-bin Date: Sun, 7 Apr 2013 11:14:16 +0800 Subject: fix compile error about noreturn on windows --- src/util.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util.h b/src/util.h index 4c1c466..07381a1 100644 --- a/src/util.h +++ b/src/util.h @@ -28,11 +28,11 @@ using namespace std; #ifdef _MSC_VER #define NORETURN __declspec(noreturn) #else -#define NORETURN __attribute__((noreturn)); +#define NORETURN __attribute__((noreturn)) #endif /// Log a fatal message and exit. -void Fatal(const char* msg, ...) NORETURN; +NORETURN void Fatal(const char* msg, ...); /// Log a warning message. void Warning(const char* msg, ...); @@ -91,7 +91,7 @@ string ElideMiddle(const string& str, size_t width); string GetLastErrorString(); /// Calls Fatal() with a function name and GetLastErrorString. -void Win32Fatal(const char* function) NORETURN; +NORETURN void Win32Fatal(const char* function); #endif #endif // NINJA_UTIL_H_ -- cgit v0.12