Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1147)

Unified Diff: src/animator/SkAnimator.cpp

Issue 12480002: Fixing some warnings on Linux (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/animator/SkAnimator.cpp
===================================================================
--- src/animator/SkAnimator.cpp (revision 8005)
+++ src/animator/SkAnimator.cpp (working copy)
@@ -409,9 +409,9 @@
#endif
if (evt.isType(SK_EventType_OnEnd)) {
SkEventState eventState;
- bool success = evt.findPtr("anim", (void**) &eventState.fDisplayable);
+ SkDEBUGCODE(bool success =) evt.findPtr("anim", (void**) &eventState.fDisplayable);
sugoi 2013/03/06 16:14:59 variable success is only used in debug code
SkASSERT(success);
- success = evt.findS32("time", (int32_t*) &fMaker->fEnableTime);
+ SkDEBUGCODE(success =) evt.findS32("time", (int32_t*) &fMaker->fEnableTime);
SkASSERT(success);
fMaker->fAdjustedStart = fMaker->getAppTime() - fMaker->fEnableTime;
fMaker->fEvents.doEvent(*fMaker, SkDisplayEvent::kOnEnd, &eventState);

Powered by Google App Engine
This is Rietveld 408576698