Bug 74375

Summary: [chromium] static initializer in ScrollbarThemeChromiumMac.mm
Product: WebKit Reporter: Tony Chang <tony>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: sail, thakis
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: Unspecified   
Bug Depends on: 61144    
Bug Blocks: 74365    

Tony Chang
Reported 2011-12-12 18:19:53 PST
/Users/tc/WebKit/Source/WebCore/WebCore.gyp/../platform/chromium/ScrollbarThemeChromiumMac.mm:155:34: error: declaration requires a global constructor [-Werror,-Wglobal-constructors] static ScrollbarButtonsPlacement gButtonPlacement = isScrollbarOverlayAPIAvailable() ? ScrollbarButtonsNone : ScrollbarButtonsDoubleEnd; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This global is set in updateArrowPlacement, so it wasn't obvious to me what the right way to fix this is. Can we just move it into a static function?
Attachments
Nico Weber
Comment 1 2011-12-13 09:56:18 PST
Sail has a CL to remove this in bug 61144
Tony Chang
Comment 2 2011-12-27 13:49:10 PST
Note You need to log in before you can comment on or make changes to this bug.