[Webkit-unassigned] [Bug 74375] New: [chromium] static initializer in ScrollbarThemeChromiumMac.mm

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 12 18:19:53 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=74375

           Summary: [chromium] static initializer in
                    ScrollbarThemeChromiumMac.mm
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Platform
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: tony at chromium.org
                CC: sail at chromium.org
            Blocks: 74365


/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?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list