X Tutup
The Wayback Machine - https://web.archive.org/web/20190413015605/https://github.com/nodejs/node/commit/78ad4e9dde
Skip to content
Permalink
Browse files

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: #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>
  • Loading branch information...
danbev authored and targos committed Jun 15, 2018
1 parent bcaf59c commit 78ad4e9dde12023e667417596dc5420a2550901e
Showing with 0 additions and 2 deletions.
  1. +0 −2 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);

0 comments on commit 78ad4e9

Please sign in to comment.
You can’t perform that action at this time.
X Tutup