r1ch.net forums
Welcome,
Guest
. Please
login
or
register
.
May 22, 2013, 03:50:16 pm
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
r1ch.net
|
r1ch.net stuff
|
R1Q2
|
OpenTDM
| Topic:
Suggested Change for "unsafe function" warnings
Pages:
[
1
]
Author
Topic: Suggested Change for "unsafe function" warnings (Read 5470 times)
QwazyWabbit
Member
Posts: 401
Suggested Change for "unsafe function" warnings
«
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
]
r1ch.net
|
r1ch.net stuff
|
R1Q2
|
OpenTDM
| Topic:
Suggested Change for "unsafe function" warnings
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Discussion
-----------------------------
r1ch.net stuff
-----------------------------
=> Bitchbot
=> r1dll / foobar2000 plugins
=> Other Projects
=> R1Q2
===> OpenTDM
=> Anticheat