Bug 25516
| Summary: | Build warnings: 'weak_import' attribute ignored for @property AVAILABLE_IN_WEBKIT_VERSION_4_0 | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jeff Johnson <opendarwin> |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | CC: | mrowe |
| Priority: | P2 | Keywords: | InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | Mac | ||
| OS: | OS X 10.5 | ||
Jeff Johnson
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
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Mark Rowe (bdash)
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.
Mark Rowe (bdash)
<rdar://problem/6850092>
Alexey Proskuryakov
We no longer support such old Xcode.