Fix a few warnings related to integer precision
Comment out an unused variable