diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-19 23:23:27 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-19 23:23:27 +0000 |
commit | 7735496922bb746e239f56358c9636be004adbe6 (patch) | |
tree | 4fb35e2c1595fee42e3f541f52fefdcbefa025f1 /chrome/tools/convert_dict | |
parent | 73e0bbac9d097eff34726194d2095dce90f2dfa3 (diff) | |
download | chromium_src-7735496922bb746e239f56358c9636be004adbe6.zip chromium_src-7735496922bb746e239f56358c9636be004adbe6.tar.gz chromium_src-7735496922bb746e239f56358c9636be004adbe6.tar.bz2 |
Fix some GCC 4.3 warnings.
BUG=7742
Review URL: http://codereview.chromium.org/20512
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10057 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools/convert_dict')
-rw-r--r-- | chrome/tools/convert_dict/convert_dict.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/tools/convert_dict/convert_dict.cc b/chrome/tools/convert_dict/convert_dict.cc index 870e322..ce17dc7 100644 --- a/chrome/tools/convert_dict/convert_dict.cc +++ b/chrome/tools/convert_dict/convert_dict.cc @@ -15,6 +15,7 @@ #include "base/file_util.h" #include "base/icu_util.h" +#include "base/logging.h" #include "base/process_util.h" #include "base/string_util.h" #include "chrome/third_party/hunspell/google/bdict_reader.h" @@ -63,7 +64,8 @@ bool VerifyWords(const convert_dict::DicReader::WordList& org_words, int PrintHelp() { printf("Usage: convert_dict <dicfile base name>\n\n"); - printf("Example:\n convert_dict en-US\nwill read en-US.dic / en-US.aff and\n"); + printf("Example:\n"); + printf(" convert_dict en-US\nwill read en-US.dic / en-US.aff and\n"); printf("generate en-US.bdic\n\n"); return 1; } @@ -119,7 +121,8 @@ int main(int argc, char* argv[]) { printf("ERROR writing file\n"); return 1; } - fwrite(&serialized[0], 1, serialized.size(), out_file); + size_t written = fwrite(&serialized[0], 1, serialized.size(), out_file); + CHECK(written == serialized.size()); file_util::CloseFile(out_file); return 0; |