Browse Source

Removed deprecation errors in src/node.cc

Removed constness on string litterals. This should cause no problem
since we're not modifying them.
v0.7.4-release
Jonas Pfenniger 15 years ago
committed by Ryan Dahl
parent
commit
8f59cccb75
  1. 4
      src/node.cc

4
src/node.cc

@ -1197,7 +1197,7 @@ static void ParseArgs(int *argc, char **argv) {
const char *arg = argv[i]; const char *arg = argv[i];
if (strstr(arg, "--debug") == arg) { if (strstr(arg, "--debug") == arg) {
ParseDebugOpt(arg); ParseDebugOpt(arg);
argv[i] = reinterpret_cast<const char*>(""); argv[i] = const_cast<char*>("");
option_end_index = i; option_end_index = i;
} else if (strcmp(arg, "--version") == 0 || strcmp(arg, "-v") == 0) { } else if (strcmp(arg, "--version") == 0 || strcmp(arg, "-v") == 0) {
printf("%s\n", NODE_VERSION); printf("%s\n", NODE_VERSION);
@ -1209,7 +1209,7 @@ static void ParseArgs(int *argc, char **argv) {
PrintHelp(); PrintHelp();
exit(0); exit(0);
} else if (strcmp(arg, "--v8-options") == 0) { } else if (strcmp(arg, "--v8-options") == 0) {
argv[i] = reinterpret_cast<const char*>("--help"); argv[i] = const_cast<char*>("--help");
option_end_index = i+1; option_end_index = i+1;
} else if (argv[i][0] != '-') { } else if (argv[i][0] != '-') {
option_end_index = i-1; option_end_index = i-1;

Loading…
Cancel
Save