WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
10176
Make WebCore compile with -Wundef
https://bugs.webkit.org/show_bug.cgi?id=10176
Summary
Make WebCore compile with -Wundef
Sam Weinig
Reported
2006-07-31 18:01:42 PDT
Adding more gcc warning flags.
Attachments
patch
(65.60 KB, patch)
2006-07-31 18:19 PDT
,
Sam Weinig
darin
: review-
Details
Formatted Diff
Diff
patch 2
(81.31 KB, patch)
2006-08-02 11:53 PDT
,
Sam Weinig
darin
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2006-07-31 18:19:56 PDT
Created
attachment 9783
[details]
patch This patch adds -Wundef to WebCore, WebKit, JavaScriptCore, and JavaScriptGlue and fixes them so that they compile. One idea I had was to hold off on this particular version and use this as an opportunity to convert to using the PLATFORM() macros from WTF. We could always do that in another patch as well.
Darin Adler
Comment 2
2006-07-31 18:54:13 PDT
Comment on
attachment 9783
[details]
patch +#if defined(SPEED_DEBUG) && SPEED_DEBUG < 1 That's definitely wrong. This needs to compile if SPEED_DEBUG is not defined. THe other ones look pretty good, but I'd prefer that it consistently use #ifdef rather than a mix of #ifdef and #if defined. Seems that all the #if __APPLE__ need to be changed too, although not on the OS X platform. review- because of the SPEED_DEBUG mistake.
Sam Weinig
Comment 3
2006-07-31 19:21:11 PDT
Darin, would something like #if !defined(SPEED_DEBUG) || SPEED_DEBUG < 1 work?
Darin Adler
Comment 4
2006-08-01 10:48:31 PDT
(In reply to
comment #3
)
> Darin, would something like > > #if !defined(SPEED_DEBUG) || SPEED_DEBUG < 1 > > work?
Yes.
Darin Adler
Comment 5
2006-08-01 10:53:06 PDT
(In reply to
comment #1
)
> One idea I had was to hold off on this > particular version and use this as an opportunity to convert to using the > PLATFORM() macros from WTF.
I like that idea.
Sam Weinig
Comment 6
2006-08-02 11:53:39 PDT
Created
attachment 9829
[details]
patch 2 This version fixes the SPEED_DEBUG issue and converts the #ifdef WIN32's from WebCore to #if PLATFORM(WIN_OS) and PLATFORM(WIN) (and in one case in config.h to #if !COMPILER(MSVC)). Some of my choices between WIN_OS and WIN might very well be wrong because I am not entirely familiar with the WIN32 platform.
Darin Adler
Comment 7
2006-08-02 16:09:45 PDT
Comment on
attachment 9829
[details]
patch 2 Not sure why you changed "many" to "majy" in the change log. But, otherwise, looks great. r=me
Sam Weinig
Comment 8
2006-08-03 15:29:53 PDT
Landed in
r15781
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug