Index: src/wasm/wasm-result.h |
diff --git a/src/wasm/wasm-result.h b/src/wasm/wasm-result.h |
index b650c334d40faf3d4beb95960204af11484cec34..59ab29ebe4060c4f54dbfea9e5cc60837745a709 100644 |
--- a/src/wasm/wasm-result.h |
+++ b/src/wasm/wasm-result.h |
@@ -5,7 +5,6 @@ |
#ifndef V8_WASM_RESULT_H_ |
#define V8_WASM_RESULT_H_ |
-#include "src/base/compiler-specific.h" |
#include "src/base/smart-pointers.h" |
#include "src/globals.h" |
@@ -94,13 +93,13 @@ |
ErrorThrower(Isolate* isolate, const char* context) |
: isolate_(isolate), context_(context), error_(false) {} |
- PRINTF_FORMAT(2, 3) void Error(const char* fmt, ...); |
+ void Error(const char* fmt, ...); |
template <typename T> |
void Failed(const char* error, Result<T>& result) { |
std::ostringstream str; |
str << error << result; |
- return Error("%s", str.str().c_str()); |
+ return Error(str.str().c_str()); |
} |
bool error() const { return error_; } |