I've picked out a few warnings and fixed them, often type confusion around size_t vs. int, size_t vs. long, or unsigned vs. int.