diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-06-15 06:27:32 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-06-17 07:57:39 +0300 |
commit | 54ee8cb5dd28e9e72770ee4ab6aa73d700232cb5 (patch) | |
tree | 149f8db97317e4bad290690ad224e294c841e693 /src | |
parent | 1e54c241322c0f65c569bc20529e2275ec361428 (diff) |
src: remove unused argc var in node_stat_watcher
Currently the following compiler warning is reported:
../src/node_stat_watcher.cc:113:13: warning:
unused variable 'argc' [-Wunused-variable]
const int argc = args.Length();
^
1 warning generated.
This commit removes the unused argc variable.
PR-URL: https://github.com/nodejs/node/pull/21337
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/node_stat_watcher.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/node_stat_watcher.cc b/src/node_stat_watcher.cc index d497a0012b0..767bc024e46 100644 --- a/src/node_stat_watcher.cc +++ b/src/node_stat_watcher.cc @@ -110,8 +110,6 @@ void StatWatcher::Start(const FunctionCallbackInfo<Value>& args) { ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder()); CHECK(!uv_is_active(wrap->GetHandle())); - const int argc = args.Length(); - node::Utf8Value path(args.GetIsolate(), args[0]); CHECK_NOT_NULL(*path); |