'Fix' unused params for remaining functions

scene_man
En Yi 2023-11-11 13:10:00 +08:00
parent 8529a2c934
commit cdb9d22e6c
2 changed files with 7 additions and 0 deletions

View File

@ -8,6 +8,7 @@ static const Vector2 GRAVITY = {0, GRAV_ACCEL};
void simple_particle_system_update(Particle_t* part, void* user_data)
{
(void)user_data;
float delta_time = DELTA_T; // TODO: Will need to think about delta time handling
part->rotation += part->angular_vel;

View File

@ -9,18 +9,24 @@
static int setup_mempool(void** state)
{
(void)state;
init_memory_pools();
return 0;
}
static int teardown_mempool(void** state)
{
(void)state;
free_memory_pools();
return 0;
}
static void test_simple_get_and_free(void **state)
{
(void)state;
unsigned long idx;
Entity_t* ent = new_entity_from_mempool(&idx);