In void DaoxRenderer_DrawTask( DaoxRenderer *self, DaoxDrawTask *drawtask ), the variable j is only declared, but not used.
The declaration of void DaoxPathStyle_Convert( DaoxPathStyle *self, int buffer[DAOX_MAX_DASH+4] ), should be changed to void DaoxPathStyle_Convert( DaoxPathStyle *self, int buffer[DAOX_MAX_DASH+5] ) as everywhere else 5 is used for buffer size increase (in the function body, but also in the caller functions).
In source/dao_animation.c:53, the variables scale, rotate, and translate are unused.
In DaoxParticle* DaoxEmitter_AddParticle(...), there is
...
if( lifeSpan < 0.5*self->lifeSpan ) lifeSpan = 0.5*self->lifeSpan;
if( lifeSpan < 2.0*self->lifeSpan ) lifeSpan = 2.0*self->lifeSpan;
...
but it's semantically the same as the following (saving few instructions ;)):
...
if( lifeSpan < 2.0*self->lifeSpan ) lifeSpan = 2.0*self->lifeSpan;
...
or there is a typo and the line if( lifeSpan < 2.0*self->lifeSpan ) lifeSpan = 2.0*self->lifeSpan; should become if( lifeSpan > 2.0*self->lifeSpan ) lifeSpan = 2.0*self->lifeSpan;.
In
void DaoxRenderer_DrawTask( DaoxRenderer *self, DaoxDrawTask *drawtask ), the variablejis only declared, but not used.The declaration of
void DaoxPathStyle_Convert( DaoxPathStyle *self, int buffer[DAOX_MAX_DASH+4] ), should be changed tovoid DaoxPathStyle_Convert( DaoxPathStyle *self, int buffer[DAOX_MAX_DASH+5] )as everywhere else5is used for buffer size increase (in the function body, but also in the caller functions).In
source/dao_animation.c:53, the variablesscale,rotate, andtranslateare unused.In
DaoxParticle* DaoxEmitter_AddParticle(...), there isbut it's semantically the same as the following (saving few instructions ;)):
or there is a typo and the line
if( lifeSpan < 2.0*self->lifeSpan ) lifeSpan = 2.0*self->lifeSpan;should becomeif( lifeSpan > 2.0*self->lifeSpan ) lifeSpan = 2.0*self->lifeSpan;.