Fix unused parameter warnings
Fix floating-point conversion warnings