Bug 25516 - Build warnings: 'weak_import' attribute ignored for @property AVAILABLE_IN_WEBKIT_VERSION_4_0
Summary: Build warnings: 'weak_import' attribute ignored for @property AVAILABLE_IN_WE...
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2009-05-02 01:09 PDT by Jeff Johnson
Modified: 2012-10-12 11:49 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Johnson 2009-05-02 01:09:21 PDT
I'm using WebKit revision 43137, Mac OS X 10.5.6, Xcode 3.1.2

I built a test Cocoa application linked to WebKitBuild/Debug/WebKit.framework. I got 24 build warnings: "'weak_import' attribute ignored".

All 24 build warnings are for @property declarations with the AVAILABLE_IN_WEBKIT_VERSION_4_0 macro. On my system, the following definition applies:

    #define AVAILABLE_IN_WEBKIT_VERSION_4_0     WEAK_IMPORT_ATTRIBUTE

Here is the complete list of warnings:

WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMText.h:35: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMDocument.h:81: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMElement.h:53: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMElement.h:54: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMElement.h:55: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMElement.h:56: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMElement.h:57: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMCSSStyleSheet.h:38: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMHTMLButtonElement.h:38: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMHTMLButtonElement.h:42: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMHTMLDocument.h:43: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMHTMLDocument.h:44: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMHTMLIFrameElement.h:47: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMHTMLInputElement.h:46: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMHTMLInputElement.h:48: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMHTMLInputElement.h:56: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMHTMLInputElement.h:62: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMHTMLSelectElement.h:43: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMHTMLSelectElement.h:46: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMHTMLTextAreaElement.h:40: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMHTMLTextAreaElement.h:46: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMEvent.h:48: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMEvent.h:49: warning: 'weak_import' attribute ignored
WebKit/WebKitBuild/Debug/WebKit.framework/Headers/DOMEvent.h:50: warning: 'weak_import' attribute ignored
Comment 1 Mark Rowe (bdash) 2009-05-02 08:26:07 PDT
I think this is actually a compiler bug, as slightly newer versions of GCC have been fixed to not warn on this code.  I wonder if there's any way we can work around it for affected compiler versions.
Comment 2 Mark Rowe (bdash) 2009-05-02 08:26:45 PDT
<rdar://problem/6850092>
Comment 3 Alexey Proskuryakov 2012-10-12 11:49:12 PDT
We no longer support such old Xcode.