summaryrefslogtreecommitdiffstats
path: root/webkit/glue/glue_serialize.cc
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-21 20:12:56 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-21 20:12:56 +0000
commitbe21555a228e74b1ad6f3314ae882cf21bc3c24e (patch)
tree3215603183ddb3b3acd62482b2b86bd3ef1daf27 /webkit/glue/glue_serialize.cc
parent4e3e9d70e14f80d41d7a1667430e6acbd561bd50 (diff)
downloadchromium_src-be21555a228e74b1ad6f3314ae882cf21bc3c24e.zip
chromium_src-be21555a228e74b1ad6f3314ae882cf21bc3c24e.tar.gz
chromium_src-be21555a228e74b1ad6f3314ae882cf21bc3c24e.tar.bz2
Enable compiler -Werror and -Wall on our webkit code for mac and linux.
This fixes some initialization order, removes unused varibles, and fixes a couple signed/unsigned comparison errors. Please check the signed/unsigned cases. We can't enable it for windows yet because MSVC complains about headers pulled in from WebCore. We'll have to wait until the API is upstreamed. BUG=21140 Review URL: http://codereview.chromium.org/214024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26728 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/glue_serialize.cc')
-rw-r--r--webkit/glue/glue_serialize.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/glue/glue_serialize.cc b/webkit/glue/glue_serialize.cc
index 7ec7f81..e0f662da 100644
--- a/webkit/glue/glue_serialize.cc
+++ b/webkit/glue/glue_serialize.cc
@@ -104,7 +104,7 @@ inline double ReadReal(const SerializeObject* obj) {
const void* tmp;
int length = 0;
ReadData(obj, &tmp, &length);
- if (length > 0 && length >= sizeof(0.0))
+ if (length > 0 && length >= static_cast<int>(sizeof(0.0)))
return *static_cast<const double*>(tmp);
else
return 0.0;
@@ -319,7 +319,7 @@ static WebHistoryItem ReadHistoryItem(
// The extra referrer string is read for backwards compat.
const WebHTTPBody& http_body = ReadFormData(obj);
const WebString& http_content_type = ReadString(obj);
- const WebString& unused_referrer = ReadString(obj);
+ ALLOW_UNUSED const WebString& unused_referrer = ReadString(obj);
if (include_form_data) {
item.setHTTPBody(http_body);
item.setHTTPContentType(http_content_type);