I have a program that calls fprintf
. In Visual Studio 2013, everything compiled and executed without errors and warnings. Now the project has been migrated to Visual Studio 2015 (without any changes) and I am getting the following warning on most of my fprintf
calls:
C4474: too many arguments passed for format string
Most of these warnings are pointing to the following line of code:
fprintf (stderr,"Missing header file name. Formant is :\n", pArg);
How can I solve this problem? Do I need to rewrite my code or is there something wrong with my project settings that is causing these warnings?
I see that, in this MSDN article there were changes made to these functions:
The definitions of all of the printf and scanf functions have been moved inline into stdio.h, conio.h, and other CRT headers.
Is this relevant to my problem? Is this just a harmless change in VS 2015 or is there a potentially crash-inducing pitfall here, too?