mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Removed deprecation errors in src/node.cc
Removed constness on string litterals. This should cause no problem since we're not modifying them.
This commit is contained in:
1 parent
e0ecf4f8f5
commit
8f59cccb75
1 file changed
+2
-2
+2
-2
@@ -1197,7 +1197,7 @@ static void ParseArgs(int *argc, char **argv) {
|
||||
const char *arg = argv[i];
|
||||
if (strstr(arg, "--debug") == arg) {
|
||||
ParseDebugOpt(arg);
|
||||
argv[i] = reinterpret_cast<const char*>("");
|
||||
argv[i] = const_cast<char*>("");
|
||||
option_end_index = i;
|
||||
} else if (strcmp(arg, "--version") == 0 || strcmp(arg, "-v") == 0) {
|
||||
printf("%s\n", NODE_VERSION);
|
||||
@@ -1209,7 +1209,7 @@ static void ParseArgs(int *argc, char **argv) {
|
||||
PrintHelp();
|
||||
exit(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;
|
||||
} else if (argv[i][0] != '-') {
|
||||
option_end_index = i-1;
|
||||
|
||||
Reference in new issue
Block a user