enable -Wall, fix warning