test: fix const qualification compiler warning
`options.file` is of type `const char*`, don't assign it to a variable that is a non-const `char*`. The other way around is perfectly legal, though. PR-URL: https://github.com/libuv/libuv/pull/1588 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
parent
e8e6a8a500
commit
d2101b0b9f
@ -1721,9 +1721,9 @@ TEST_IMPL(spawn_quoted_path) {
|
||||
RETURN_SKIP("Test for Windows");
|
||||
#else
|
||||
char* quoted_path_env[2];
|
||||
options.file = "not_existing";
|
||||
args[0] = options.file;
|
||||
args[0] = "not_existing";
|
||||
args[1] = NULL;
|
||||
options.file = args[0];
|
||||
options.args = args;
|
||||
options.exit_cb = exit_cb;
|
||||
options.flags = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user