Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: fix compiler warnings in node_report_module #32498

Closed
wants to merge 1 commit into from

Commits on Mar 26, 2020

  1. src: fix compiler warnings in node_report_module

    Currently, the following compiler warnings are generated:
    ../src/node_report_module.cc:
    In function ‘void report::ShouldReportOnFatalError(
        const v8::FunctionCallbackInfo<v8::Value>&)’:
    ../src/node_report_module.cc:132:16: warning:
    unused variable ‘env’ [-Wunused-variable]
      132 |   Environment* env = Environment::GetCurrent(info);
          |                ^~~
    ../src/node_report_module.cc:
    In function ‘void report::SetReportOnFatalError(
        const v8::FunctionCallbackInfo<v8::Value>&)’:
    ../src/node_report_module.cc:138:16: warning:
    unused variable ‘env’ [-Wunused-variable]
      138 |   Environment* env = Environment::GetCurrent(info);
          |                ^~~
    
    This commit removes the unused variables.
    danbev committed Mar 26, 2020
    Copy the full SHA
    43c2527 View commit details
    Browse the repository at this point in the history