Use -Wextra.
Fix signed vs unsigned comparisons.