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)

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 06-18-2006, 10:12 AM
fireclav
Sarnak
 
Join Date: Jun 2006
Location: nowhere
Posts: 56
Default

so i take it that warning or w/e is ok and doesnt effect the outcome cuz i get that a lot when i compile
Reply With Quote
  #3  
Old 06-19-2006, 12:25 PM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

that statement is already included on line 70 of debug.h, are you of the oppinion that having it later in the file makes a difference?
Reply With Quote
Reply


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 07:02 PM.


 

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