Remove warnings (gcc):
- shift initialization of is_active to correct position
- remove unused variable