[cleanup] cleanup compiler warning

- tedious fixes
- review is welcome