Bug 139941

Summary: Engineering builds of MiniBrowser ignore deprecated declaration warnings
Product: WebKit Reporter: mitz
Component: Tools / TestsAssignee: mitz
Status: RESOLVED FIXED    
Severity: Normal CC: darin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Enable deprecation warnings darin: review+

mitz
Reported 2014-12-24 21:48:17 PST
MiniBrowser builds with GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS=NO even in the engineering configurations.
Attachments
Enable deprecation warnings (3.53 KB, patch)
2014-12-24 21:52 PST, mitz
darin: review+
mitz
Comment 1 2014-12-24 21:52:02 PST
Created attachment 243738 [details] Enable deprecation warnings
Darin Adler
Comment 2 2014-12-24 22:22:04 PST
Comment on attachment 243738 [details] Enable deprecation warnings View in context: https://bugs.webkit.org/attachment.cgi?id=243738&action=review > Tools/MiniBrowser/mac/AppDelegate.m:167 > +#pragma clang diagnostic push > +#pragma clang diagnostic ignored "-Wdeprecated-declarations" > if (result != NSOKButton) > return; > +#pragma clang diagnostic pop I think we should be using NSFileHandlingPanelOKButton here instead of NSOKButton (not NSModalResponseOK), but I guess maybe that is not available in OS X 10.8 either. > Tools/MiniBrowser/mac/AppDelegate.m:181 > +#pragma clang diagnostic push > +#pragma clang diagnostic ignored "-Wdeprecated-declarations" > if (result != NSOKButton) > return; > +#pragma clang diagnostic pop Ditto.
mitz
Comment 3 2014-12-24 22:27:54 PST
(In reply to comment #2) > Comment on attachment 243738 [details] > Enable deprecation warnings > > View in context: > https://bugs.webkit.org/attachment.cgi?id=243738&action=review > > > Tools/MiniBrowser/mac/AppDelegate.m:167 > > +#pragma clang diagnostic push > > +#pragma clang diagnostic ignored "-Wdeprecated-declarations" > > if (result != NSOKButton) > > return; > > +#pragma clang diagnostic pop > > I think we should be using NSFileHandlingPanelOKButton here instead of > NSOKButton (not NSModalResponseOK), but I guess maybe that is not available > in OS X 10.8 either. Thanks for the suggestion! NSFileHandlingPanelOKButton is more appropriate and has been available since 10.10. Fixed in <http://trac.webkit.org/r177731>.
Note You need to log in before you can comment on or make changes to this bug.