fix strict warnings on var assign