[so] [Tema2][Windows] Warnings

Razvan Deaconescu razvan.deaconescu at cs.pub.ro
Sat Apr 18 13:09:16 EEST 2009


On Sat, 2009-04-18 at 13:01 +0300, x x wrote:
> Salut!
> 
> As dori sa stiu daca suntem depunctati pt warning-uri de genul
> urmator:
> 
> client.c(69) : warning C4996: 'strcat': This function or variable may
> be unsafe. Consider using strcat_s instead. To disable deprecation,
> use _CRT_SECURE_NO_WARNINGS. See online help for details.
>         C:\Program Files\Microsoft Visual Studio 9.0\VC\Include
> \string.h(79) : see declaration of 'strcat'
> client.c(78) : warning C4996: 'strcpy': This function or variable may
> be unsafe. Consider using strcpy_s instead. To disable deprecation,
> use _CRT_SECURE_NO_WARNINGS. See online help for details.
>         C:\Program Files\Microsoft Visual Studio 9.0\VC\Include
> \string.h(74) : see declaration of 'strcpy'
> 
> Intreb asta pentru ca la prezentarea temei este preciza(copy-paste):

Adauga /D_CRT_SECURE_NO_WARNINGS la variabila CFLAGS in Makefile.

Hint: scrie si in codul warning-ului acest lucru
Request: foloseste un nume in cadrul adresei de e-mail si o semnatura la
mesaj. Ne place sa stim cu cine discutam.

Razvan



More information about the so mailing list