fix compiler warnings:
- defined but not used
- deprecated conversion from string constant to ‘char*’