From f1489baeb7376ea1e1041de09e24a67a05e11a15 Mon Sep 17 00:00:00 2001 From: "qsr@chromium.org" Date: Fri, 21 Sep 2012 07:58:25 +0000 Subject: Turn on more warnings in ios / mac projects. Make casts explicit. This makes casts that loose precision explicit, from here on we will get warnings. The changes in this commit are made without evaluating each cast, asuming the original casts were intentional. Patch by: jakerr@google.com Review: https://breakpad.appspot.com/453002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1046 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/minidump_file_writer_unittest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/minidump_file_writer_unittest.cc') diff --git a/src/client/minidump_file_writer_unittest.cc b/src/client/minidump_file_writer_unittest.cc index 08522fb2..60c364e6 100644 --- a/src/client/minidump_file_writer_unittest.cc +++ b/src/client/minidump_file_writer_unittest.cc @@ -86,7 +86,7 @@ static bool WriteFile(const char *path) { google_breakpad::TypedMDRVA array(&writer); unsigned int count = 10; ASSERT_TRUE(array.AllocateArray(count)); - for (unsigned int i = 0; i < count; ++i) { + for (unsigned char i = 0; i < count; ++i) { ArrayStructure local; local.char_value = i; local.short_value = i + 1; @@ -99,7 +99,7 @@ static bool WriteFile(const char *path) { ASSERT_TRUE(obj_array.AllocateObjectAndArray(count, sizeof(ArrayStructure))); obj_array.get()->count = count; - for (unsigned int i = 0; i < count; ++i) { + for (unsigned char i = 0; i < count; ++i) { ArrayStructure local; local.char_value = i; local.short_value = i + 1; -- cgit v1.2.1