Re #9267. Remove unused exception variables.
Re #9267. Attempt to clear warning by matching type.
Re #9267. Another place where we need to get the type right.
Merge remote-tracking branch 'origin/bugfix/9267_msvc_compiler_warnings'

* origin/bugfix/9267_msvc_compiler_warnings:
  Re #9267. Another place where we need to get the type right.
  Re #9267. Attempt to clear warning by matching type.
  Re #9267. Remove unused exception variables.