GeezerVison is showing github.com — src: avoid unused variables and functions · nodejs/node@5e63bf3
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/inspector_agent.cc +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -52,7 +52,9 @@ using v8_inspector::StringView; |
52 | 52 | using v8_inspector::V8Inspector; |
53 | 53 | using v8_inspector::V8InspectorClient; |
54 | 54 |
|
| 55 | +#ifdef __POSIX__ |
55 | 56 | static uv_sem_t start_io_thread_semaphore; |
| 57 | +#endif // __POSIX__ |
56 | 58 | static uv_async_t start_io_thread_async; |
57 | 59 | // This is just an additional check to make sure start_io_thread_async |
58 | 60 | // is not accidentally re-used or used when uninitialized. |
|
Collapse file
Copy file name to clipboardExpand all lines: src/node_binding.cc +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -229,7 +229,7 @@ static bool libc_may_be_musl() { |
229 | 229 | has_cached_retval = true; |
230 | 230 | return retval; |
231 | 231 | } |
232 | | -#else // __linux__ |
| 232 | +#elif defined(__POSIX__) |
233 | 233 | static bool libc_may_be_musl() { return false; } |
234 | 234 | #endif // __linux__ |
235 | 235 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: src/node_credentials.cc +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -456,12 +456,12 @@ static void Initialize(Local<Object> target, |
456 | 456 | Local<Value> unused, |
457 | 457 | Local<Context> context, |
458 | 458 | void* priv) { |
459 | | - Environment* env = Environment::GetCurrent(context); |
460 | | - Isolate* isolate = env->isolate(); |
461 | | - |
462 | 459 | SetMethod(context, target, "safeGetenv", SafeGetenv); |
463 | 460 |
|
464 | 461 | #ifdef NODE_IMPLEMENTS_POSIX_CREDENTIALS |
| 462 | + Environment* env = Environment::GetCurrent(context); |
| 463 | + Isolate* isolate = env->isolate(); |
| 464 | + |
465 | 465 | READONLY_TRUE_PROPERTY(target, "implementsPosixCredentials"); |
466 | 466 | SetMethodNoSideEffect(context, target, "getuid", GetUid); |
467 | 467 | SetMethodNoSideEffect(context, target, "geteuid", GetEUid); |
|