Warning C4100 unreferenced formal parameter Warning C4242 conversion from 'int' to 'short', possible loss of data