r1ch.net forums
* Home Help Search Login Register
r1ch.net  |  r1ch.net stuff  |  R1Q2  |  OpenTDM  |  Topic: Suggested Change for "unsafe function" warnings
Pages: [1]
Print
Author Topic: Suggested Change for "unsafe function" warnings  (Read 7016 times)
QwazyWabbit
Member

Posts: 402


« on: October 28, 2010, 02:18:05 am »

This seems to be the simplest and most visible way to eliminate the warnings emitted by Microsoft C++ compilers post-dating VC6.


Index: q_shared.h
===================================================================
--- q_shared.h   (revision 181)
+++ q_shared.h   (working copy)
@@ -63,6 +63,10 @@
 #pragma warning(disable : 4096)      // __cdecl must be used with '...'*/
 #pragma warning(disable : 4142)      //benign redefinition
 
+#if _MSC_VER > 1500
+#pragma warning(disable : 4996)   // disable warnings from VS 2010 about deprecated CRT functions.
+#endif
+
 #pragma warning(2 : 4189 4210 4389)   // useful warnings
 
 //"off by default" warnings
Logged
Pages: [1]
Print
r1ch.net  |  r1ch.net stuff  |  R1Q2  |  OpenTDM  |  Topic: Suggested Change for "unsafe function" warnings
Jump to:  

Powered by SMF 1.1.19 | SMF © 2013, Simple Machines