Fix some warnings

A couple of warning fixes.  

  * fix `warning: implicit conversion loses integer precision: 'long' to 'int'`
  * Add `-Wno-comment`. There will be wildcard refs or filepaths in the docs. The warning is just noise.