fix clang warnings:
- unused var
- unknown define
- possible crash in spring-dedicated