diff --git a/src/inspector/worker_agent.cc b/src/inspector/worker_agent.cc index fccd6d57a53c2a..d343de8494a36f 100644 --- a/src/inspector/worker_agent.cc +++ b/src/inspector/worker_agent.cc @@ -2,6 +2,7 @@ #include "main_thread_interface.h" #include "worker_inspector.h" +#include "util-inl.h" namespace node { namespace inspector { diff --git a/src/node_os.cc b/src/node_os.cc index d3e9460f473122..6e209b2ceec71c 100644 --- a/src/node_os.cc +++ b/src/node_os.cc @@ -168,7 +168,7 @@ static void GetCPUInfo(const FunctionCallbackInfo& args) { Local cpus = args[2].As(); Local model_argv[NODE_PUSH_VAL_TO_ARRAY_MAX]; - int model_idx = 0; + unsigned int model_idx = 0; for (i = 0, field_idx = 0; i < count; i++) { uv_cpu_info_t* ci = cpu_infos + i; diff --git a/src/node_trace_events.cc b/src/node_trace_events.cc index ce60cde2d0d433..5269ad332ed151 100644 --- a/src/node_trace_events.cc +++ b/src/node_trace_events.cc @@ -62,7 +62,6 @@ void NodeCategorySet::New(const FunctionCallbackInfo& args) { } void NodeCategorySet::Enable(const FunctionCallbackInfo& args) { - Environment* env = Environment::GetCurrent(args); NodeCategorySet* category_set; ASSIGN_OR_RETURN_UNWRAP(&category_set, args.Holder()); CHECK_NOT_NULL(category_set); @@ -74,7 +73,6 @@ void NodeCategorySet::Enable(const FunctionCallbackInfo& args) { } void NodeCategorySet::Disable(const FunctionCallbackInfo& args) { - Environment* env = Environment::GetCurrent(args); NodeCategorySet* category_set; ASSIGN_OR_RETURN_UNWRAP(&category_set, args.Holder()); CHECK_NOT_NULL(category_set);