[Webkit-unassigned] [Bug 162302] New: [GTK] webkit-gtk-2.14.0 build failure of ScrollbarThemeGtk with libc++
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Sep 20 10:43:10 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=162302
Bug ID: 162302
Summary: [GTK] webkit-gtk-2.14.0 build failure of
ScrollbarThemeGtk with libc++
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Macintosh
OS: OS X 10.11
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit Gtk
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jeremyhu at apple.com
CC: bugs-noreply at webkitgtk.org
2.14.0 fails to build with the following error using clang+libc++ on darwin:
webkitgtk-2.14.0/Source/WebCore/platform/gtk/ScrollbarThemeGtk.cpp:547:35: error: call to 'abs' is ambiguous
contentsRect.move(std::abs(rect.width() - preferredSize.width()), 0);
^~~~~~~~
../include/c++/v1/cmath:664:1: note: candidate function
abs(float __lcpp_x) _NOEXCEPT {return fabsf(__lcpp_x);}
^
../include/c++/v1/cmath:668:1: note: candidate function
abs(double __lcpp_x) _NOEXCEPT {return fabs(__lcpp_x);}
^
../include/c++/v1/cmath:672:1: note: candidate function
abs(long double __lcpp_x) _NOEXCEPT {return fabsl(__lcpp_x);}
^
webkitgtk-2.14.0/Source/WebCore/platform/gtk/ScrollbarThemeGtk.cpp:552:34: error: call to 'abs' is ambiguous
contentsRect.move(0, std::abs(rect.height() - preferredSize.height()));
^~~~~~~~
../include/c++/v1/cmath:664:1: note: candidate function
abs(float __lcpp_x) _NOEXCEPT {return fabsf(__lcpp_x);}
^
../include/c++/v1/cmath:668:1: note: candidate function
abs(double __lcpp_x) _NOEXCEPT {return fabs(__lcpp_x);}
^
../include/c++/v1/cmath:672:1: note: candidate function
abs(long double __lcpp_x) _NOEXCEPT {return fabsl(__lcpp_x);}
^
2 errors generated.
Casting the call site to (double) addresses the issue.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160920/bd31198d/attachment-0001.html>
More information about the webkit-unassigned
mailing list