[Webkit-unassigned] [Bug 145919] New: Fix absolute value warning in LocalizedStringsGtk.cpp

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 12 04:14:11 PDT 2015


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

            Bug ID: 145919
           Summary: Fix absolute value warning in LocalizedStringsGtk.cpp
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ossy at webkit.org
                CC: pnormand at igalia.com, zan at falconsigh.net
            Blocks: 145121

../../Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp:667:36: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value]
    int seconds = static_cast<int>(abs(time));
                                   ^
../../Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp:667:36: note: use function 'std::abs' instead
    int seconds = static_cast<int>(abs(time));
                                   ^~~
                                   std::abs
1 warning generated.


This code was introduced in http://trac.webkit.org/changeset/142463 ,
but it seems something is still wrong here.

-- 
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/20150612/a57663e5/attachment.html>


More information about the webkit-unassigned mailing list