Compiler Warning (level 1) C4167
Error Messagefunction : only available as an intrinsic function
The #pragma function tries to force the compiler to use a conventional call to a function that must be used in intrinsic form. The pragma is ignored.
To avoid this warning, remove the #pragma function.