GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: avoid unused variables and functions · nodejs/node@57bca94

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • inspector_agent.cc
    • node_binding.cc
    • node_credentials.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/inspector_agent.cc‎

Copy file name to clipboardExpand all lines: src/inspector_agent.cc
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ using v8_inspector::StringView;
5252
using v8_inspector::V8Inspector;
5353
using v8_inspector::V8InspectorClient;
5454

55+
#ifdef __POSIX__
5556
static uv_sem_t start_io_thread_semaphore;
57+
#endif // __POSIX__
5658
static uv_async_t start_io_thread_async;
5759
// This is just an additional check to make sure start_io_thread_async
5860
// is not accidentally re-used or used when uninitialized.
Collapse file

‎src/node_binding.cc‎

Copy file name to clipboardExpand all lines: src/node_binding.cc
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ static bool libc_may_be_musl() {
222222
has_cached_retval = true;
223223
return retval;
224224
}
225-
#else // __linux__
225+
#elif defined(__POSIX__)
226226
static bool libc_may_be_musl() { return false; }
227227
#endif // __linux__
228228

Collapse file

‎src/node_credentials.cc‎

Copy file name to clipboardExpand all lines: src/node_credentials.cc
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,12 +456,12 @@ static void Initialize(Local<Object> target,
456456
Local<Value> unused,
457457
Local<Context> context,
458458
void* priv) {
459-
Environment* env = Environment::GetCurrent(context);
460-
Isolate* isolate = env->isolate();
461-
462459
SetMethod(context, target, "safeGetenv", SafeGetenv);
463460

464461
#ifdef NODE_IMPLEMENTS_POSIX_CREDENTIALS
462+
Environment* env = Environment::GetCurrent(context);
463+
Isolate* isolate = env->isolate();
464+
465465
READONLY_TRUE_PROPERTY(target, "implementsPosixCredentials");
466466
SetMethodNoSideEffect(context, target, "getuid", GetUid);
467467
SetMethodNoSideEffect(context, target, "geteuid", GetEUid);

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.