hashtable,plrmodes,stage1: fix minor warnings

This commit is contained in:
Andrei Alexeyev 2022-09-20 00:07:35 +02:00
parent ffb005c8c6
commit 68173e811b
No known key found for this signature in database
GPG key ID: 72D26128040B9690
3 changed files with 3 additions and 4 deletions

View file

@ -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;

View file

@ -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;
}
}

View file

@ -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));