diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-24 21:31:43 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-24 21:31:43 +0000 |
commit | ea91a2bf8536adfed57c70d56df741dbd8aeb8d2 (patch) | |
tree | 7b3983172fcde77d5eeda88095c8dfd9ed9d490c /sync/notifier | |
parent | 72a65823d8a8797e7be640da597a1595261417e5 (diff) | |
download | chromium_src-ea91a2bf8536adfed57c70d56df741dbd8aeb8d2.zip chromium_src-ea91a2bf8536adfed57c70d56df741dbd8aeb8d2.tar.gz chromium_src-ea91a2bf8536adfed57c70d56df741dbd8aeb8d2.tar.bz2 |
Mac 64-bit compatibility for remoting: use proper types.
DisconnectWindow is an NSWindow. NSWindow defines an instance method
-initWithContentRect:styleMask:backing:defer: where the type of styleMask
is NSUInteger. DisconnectWindow implements this method by using an unsigned
int as the type of its styleMask parameter instead. In the 32-bit environment,
NSUInteger is an unsigned int, and so the types are compatible. In the 64-bit
environment, NSUInteger is an unsigned long instead of an unsigned int,
resulting in this compilation error:
remoting/host/disconnect_window_mac.mm:181:41: error:
conflicting parameter types in implementation of
'initWithContentRect:styleMask:backing:defer:':
'NSUInteger' (aka 'unsigned long') vs 'unsigned int'
[-Werror,-Wmismatched-parameter-types]
styleMask:(unsigned int)aStyle
~~~~~~~~ ^
.../SDKs/MacOSX10.6.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:264:69:
note: previous definition is here
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag;
~~~~~~~~~~ ^
Review URL: https://codereview.chromium.org/12042089
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178649 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/notifier')
0 files changed, 0 insertions, 0 deletions