diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-30 19:08:08 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-30 19:08:08 +0000 |
commit | b733ece9e91b62c602807034c4f46ed073c34a9c (patch) | |
tree | 36f7b64f8e63acdcb178076f800acc15f7f51bf6 /webkit | |
parent | 3c790d2faf78d148e8dc9f6d1053847d68529935 (diff) | |
download | chromium_src-b733ece9e91b62c602807034c4f46ed073c34a9c.zip chromium_src-b733ece9e91b62c602807034c4f46ed073c34a9c.tar.gz chromium_src-b733ece9e91b62c602807034c4f46ed073c34a9c.tar.bz2 |
clang: Suppress a false positive to fix the 10.6 sdk build.
BUG=111861
TEST=build with the 10.6 sdk
TBR=bauerb
Review URL: https://chromiumcodereview.appspot.com/9293009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119702 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/plugins/npapi/plugin_web_event_converter_mac.mm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/webkit/plugins/npapi/plugin_web_event_converter_mac.mm b/webkit/plugins/npapi/plugin_web_event_converter_mac.mm index 4d58b28..91bf2ec 100644 --- a/webkit/plugins/npapi/plugin_web_event_converter_mac.mm +++ b/webkit/plugins/npapi/plugin_web_event_converter_mac.mm @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -209,11 +209,15 @@ bool CocoaPluginWebEventConverter::ConvertKeyboardEvent( return true; } + // TODO(thakis): Remove this once clang is smarter, http://crbug.com/111861 +#pragma clang diagnostic push // clang warns about direct access to isa. +#pragma clang diagnostic ignored "-Wformat" cocoa_event_.data.key.characters = reinterpret_cast<NPNSString*>( [NSString stringWithFormat:@"%S", key_event.text]); cocoa_event_.data.key.charactersIgnoringModifiers = reinterpret_cast<NPNSString*>( [NSString stringWithFormat:@"%S", key_event.unmodifiedText]); +#pragma clang diagnostic pop if (key_event.modifiers & WebInputEvent::IsAutoRepeat) cocoa_event_.data.key.isARepeat = true; |