summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-18 19:58:40 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-18 19:58:40 +0000
commit5ee2719237fcb1c8a71a3c84eef01740fd8f71f9 (patch)
tree810ea99ff6cb053e2cee121f07033a178786e2d5 /webkit
parent9695f15b17244946f60798f8f1681df2453c20b9 (diff)
downloadchromium_src-5ee2719237fcb1c8a71a3c84eef01740fd8f71f9.zip
chromium_src-5ee2719237fcb1c8a71a3c84eef01740fd8f71f9.tar.gz
chromium_src-5ee2719237fcb1c8a71a3c84eef01740fd8f71f9.tar.bz2
More glibc 2.8 fixes.
glibc 2.8 has lots of extra attributes that cause warnings when we ignore the return value of some functions. Since warnings are fatal for our build we need to fix these. Review URL: http://codereview.chromium.org/11451 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5625 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/tools/test_shell/test_shell_gtk.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/webkit/tools/test_shell/test_shell_gtk.cc b/webkit/tools/test_shell/test_shell_gtk.cc
index 5fc6f2c..2944d64 100644
--- a/webkit/tools/test_shell/test_shell_gtk.cc
+++ b/webkit/tools/test_shell/test_shell_gtk.cc
@@ -346,7 +346,10 @@ void TestShell::ResizeSubViews() {
ShouldDumpChildFramesAsText();
std::string data_utf8 = WideToUTF8(
webkit_glue::DumpFramesAsText(webFrame, recursive));
- fwrite(data_utf8.c_str(), 1, data_utf8.size(), stdout);
+ if (fwrite(data_utf8.c_str(), 1, data_utf8.size(), stdout) !=
+ data_utf8.size()) {
+ LOG(FATAL) << "Short write to stdout, disk full?";
+ }
} else {
printf("%s", WideToUTF8(
webkit_glue::DumpRenderer(webFrame)).c_str());
@@ -434,7 +437,8 @@ static bool PromptForSaveFile(const char* prompt_title,
{
char filenamebuffer[512];
printf("Enter filename for \"%s\"\n", prompt_title);
- fgets(filenamebuffer, sizeof(filenamebuffer), stdin);
+ if (!fgets(filenamebuffer, sizeof(filenamebuffer), stdin))
+ return false; // EOF on stdin
*result = FilePath(filenamebuffer);
return true;
}