Bug 143541

Summary: Fix -Wformat in AnimationBase.cpp
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: WebCore Misc.Assignee: Michael Catanzaro <mcatanzaro>
Status: RESOLVED FIXED    
Severity: Minor CC: andersca, commit-queue, dino, dstockwell, mcatanzaro, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Patch none

Description Michael Catanzaro 2015-04-08 17:06:37 PDT
Since r170070:

../../Source/WebCore/page/animation/AnimationBase.cpp:321:259: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘WebCore::AnimationBase::AnimationStateInput’ [-Wformat=]

This only occurs in debug builds.

We can either static_cast it to an int, or print it as a string.
Comment 1 Michael Catanzaro 2015-04-08 18:15:16 PDT
Created attachment 250399 [details]
Patch
Comment 2 WebKit Commit Bot 2015-04-08 19:16:32 PDT
Comment on attachment 250399 [details]
Patch

Clearing flags on attachment: 250399

Committed r182580: <http://trac.webkit.org/changeset/182580>
Comment 3 WebKit Commit Bot 2015-04-08 19:16:37 PDT
All reviewed patches have been landed.  Closing bug.