I got a question. When I compile my code on Linux using gcc3.2.2 I get tons of warnings. One that comes up a lot is:
Code:
client.cpp:1866: warning: deprecated conversion from string constant to `char*'
Is there a reason why the devs don't use strcpy()? Not being a full-time programmer, I am trying to understand. Is it a question of compatibility with Windows? Efficiency of the function, resource management, or maybe just habit in coding from most devs?
Would it be worth the effort to peruse the code to clean them out. It seems a lot of the warnings have to do with improper data types being passed to functions, (double passed as argument to an int).
Since I'm a network admin, I don't see code everyday. Is it a general acceptable practice among programmers, or is it sloppyness? I'm thinking that if the right data types were passed, it would improve efficiency.
Trying to understand, and also trying to help improve EQEmu (and myself in the process). Let me know...