[so] [Windows Warning] cl.exe: This function or variable may be unsafe

Andrei Datcu datcuandrei at gmail.com
Tue Mar 11 00:57:03 EET 2014


Primesc acest warning deoarece folosesc functiile strtok si fopen:

xxx.c(51) : warning C4996: 'strtok': This function or variable may be
unsafe. Consider using strtok_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.
        C:\Program Files\Microsoft Visual Studio
10.0\VC\INCLUDE\string.h(197) : see declaration of 'strtok'
xxx.c(62) : warning C4996: 'fopen': This function or variable may be
unsafe. Consider using fopen_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.
        C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(234) :

Flagurile de compilare sunt:

/nologo /W3

Cum pot scapa de aceste warninguri? Poate fi depunctata o tema cu
aceste warninguri?


More information about the so mailing list