hashtable,plrmodes,stage1: fix minor warnings
This commit is contained in:
parent
ffb005c8c6
commit
68173e811b
3 changed files with 3 additions and 4 deletions
|
@ -1133,7 +1133,7 @@ HT_DECLARE_PRIV_FUNC(bool, set, (
|
|||
|
||||
HT_DECLARE_PRIV_FUNC(void, check_elem_count, (HT_BASETYPE *ht)) {
|
||||
#ifdef DEBUG
|
||||
ht_size_t num_elements = 0;
|
||||
attr_unused ht_size_t num_elements = 0;
|
||||
for(ht_size_t i = 0; i < ht->num_elements_allocated; ++i) {
|
||||
if(ht->elements[i].hash & HT_HASH_LIVE_BIT) {
|
||||
++num_elements;
|
||||
|
|
|
@ -469,9 +469,8 @@ TASK(reimu_spirit_ofuda, { cmplx pos; cmplx vel; real damage; ShaderProgram *sha
|
|||
.shader_ptr = ARGS.shader,
|
||||
));
|
||||
|
||||
for(int t = 0;; ++t) {
|
||||
for(;;YIELD) {
|
||||
reimu_common_ofuda_swawn_trail(ofuda);
|
||||
YIELD;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ DEFINE_EXTERN_TASK(stage1_spell_perfect_freeze) {
|
|||
Boss *boss = INIT_BOSS_ATTACK(&ARGS);
|
||||
BEGIN_BOSS_ATTACK(&ARGS);
|
||||
|
||||
for(int run = 1;;run++) {
|
||||
for(;;) {
|
||||
boss->move = move_towards(VIEWPORT_W/2.0 + 100.0*I, 0.04);
|
||||
common_charge(40, &boss->pos, 0, RGBA(1.0, 0.5, 0.0, 0));
|
||||
|
||||
|
|
Loading…
Reference in a new issue