added missing type specifier
remove unused vars
fix datatype mismatches, remove dead part of code
fix datatype mismatch and kick unused var
extend warn list to exclude
fix datatype mismatch
fix datatype mismatch
avoid repeated strlen usage, remove unused vars