Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-20-2006, 06:19 AM
Ibix
Sarnak
 
Join Date: Jan 2006
Posts: 40
Default Small change to debug.h

This would be absolutely fabulous, if the development team wouldn't mind including this change in the next possible cvs. Basically, if you're compiling/building using a new (VC++.NET 2005 Express) Windows C++ environment, you get some several thousand warnings about deprecated functions, because Microsoft has rewritten some of the functions being used, such as strcpy.

The following code change just sets the compiler to not display all those painful messages that make locating the real errors more difficult:

Index: common/debug.h
================================================== =================
RCS file: /cvsroot/eqemulator/EQEmuCVS/Source/common/debug.h,v
retrieving revision 1.5.4.5
diff -u -r1.5.4.5 debug.h
--- common/debug.h 8 Jan 2006 21:02:37 -0000 1.5.4.5
+++ common/debug.h 20 Jan 2006 18:09:06 -0000
@@ -86,6 +86,7 @@
#ifdef WIN32
#include <windows.h>
#include <winsock2.h>
+ #pragma warning( disable : 4996 )
#endif

#include "logsys.h"
================================================== =================


Hope that helps someone; I know it was just a minor annoyance, but it's just one line and makes things so much more pretty. If debug.h is not where it belongs, feel free to put it somewhere else, but it's gotta be something included by all the projects.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 12:20 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3