Fix compiler warnings (unused / unchecked)