Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(863)

Unified Diff: runtime/bin/builtin_natives.cc

Issue 1484653002: Fixes setjmp clobbering warnings. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin_natives.cc
diff --git a/runtime/bin/builtin_natives.cc b/runtime/bin/builtin_natives.cc
index 19a25d2a3ab8fd20363006439828f92bb950ba4d..5ba56371a4d78a8f87f457f210fed8370f807969 100644
--- a/runtime/bin/builtin_natives.cc
+++ b/runtime/bin/builtin_natives.cc
@@ -91,7 +91,8 @@ void FUNCTION_NAME(Builtin_PrintString)(Dart_NativeArguments args) {
if (Dart_IsError(result)) Dart_PropagateError(result);
// Uses fwrite to support printing NUL bytes.
- fwrite(chars, 1, length, stdout);
+ intptr_t res = fwrite(chars, 1, length, stdout);
+ ASSERT(res == length);
fputs("\n", stdout);
fflush(stdout);
if (ShouldCaptureStdout()) {
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698