mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
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>
This commit is contained in:
1 parent
1e54c24132
commit
54ee8cb5dd
1 file changed
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user