Browse files

fix compile error about noreturn on windows

  • Loading branch information...
1 parent 1baebab commit bb258a5b72a0237a0439d92ad360f5bfbcd8095e @wang-bin wang-bin committed Apr 7, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/util.h
@@ -28,11 +28,11 @@ using namespace std;
#ifdef _MSC_VER
#define NORETURN __declspec(noreturn)
-#define NORETURN __attribute__((noreturn));
+#define NORETURN __attribute__((noreturn))
/// 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 // NINJA_UTIL_H_

1 comment on commit bb258a5


Evan Martin » ninja #368 FAILURE
Looks like this commit caused a build failure
(what's this?)

Please sign in to comment.