strcmp
-
warning: deprecated conversion from string constant to 'char*'Computer/linux 2007. 11. 16. 23:02
After upgrading gcc version 4.2.3 20071014 (prerelease) (Debian 4.2.2-3), there are a lot of warning message as warning: deprecated conversion from string constant to 'char*' To add const before char*, the warning message was gone. void nrerror(const char *error_text); void nrerror(const char *error_text) /* Numerical Recipes standard error handler */ { fprintf(stderr,"Numerical Recipes run-time..