Skip to content
This repository was archived by the owner on Jul 6, 2018. It is now read-only.

src: to ToChecked to holder->SetPrototype#89

Closed
danbev wants to merge 1 commit intonodejs:masterfrom
danbev:check-holder-setprototype
Closed

src: to ToChecked to holder->SetPrototype#89
danbev wants to merge 1 commit intonodejs:masterfrom
danbev:check-holder-setprototype

Conversation

@danbev
Copy link
Copy Markdown
Contributor

@danbev danbev commented May 5, 2017

Currently the following compiler warning is displayed:

 /out/Debug/obj.target/node/src/node_http2.o
../src/node_http2.cc
../src/node_http2.cc:../src/node_http2.cc838::8383::3 : warning:
warning: ignoring return value of function declared with
      warn_unused_result ignoringattribute  return[-Wunused-result]
value
 of function declared with
      warn_unused_result attribute [-Wunused-result]
  holder->SetPrototype(context, v8::Null(isolate));
  ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

This commit adds a check to avoid this warning.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

src

Currently the following compiler warning is displayed:
 /out/Debug/obj.target/node/src/node_http2.o
../src/node_http2.cc
../src/node_http2.cc:../src/node_http2.cc838::8383::3 : warning:
warning: ignoring return value of function declared with
      warn_unused_result ignoringattribute  return[-Wunused-result]
value
 of function declared with
      warn_unused_result attribute [-Wunused-result]
  holder->SetPrototype(context, v8::Null(isolate));
  ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

This commit adds a check to avoid this warning.
jasnell

This comment was marked as off-topic.

@jasnell
Copy link
Copy Markdown
Member

jasnell commented May 7, 2017

Landed!

@jasnell jasnell closed this May 7, 2017
jasnell pushed a commit that referenced this pull request May 7, 2017
Currently the following compiler warning is displayed:
 /out/Debug/obj.target/node/src/node_http2.o
../src/node_http2.cc
../src/node_http2.cc:../src/node_http2.cc838::8383::3 : warning:
warning: ignoring return value of function declared with
      warn_unused_result ignoringattribute  return[-Wunused-result]
value
 of function declared with
      warn_unused_result attribute [-Wunused-result]
  holder->SetPrototype(context, v8::Null(isolate));
  ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

This commit adds a check to avoid this warning.

PR-URL: #89
Reviewed-By: James M Snell <jasnell@gmail.com>
jasnell pushed a commit that referenced this pull request May 19, 2017
Currently the following compiler warning is displayed:
 /out/Debug/obj.target/node/src/node_http2.o
../src/node_http2.cc
../src/node_http2.cc:../src/node_http2.cc838::8383::3 : warning:
warning: ignoring return value of function declared with
      warn_unused_result ignoringattribute  return[-Wunused-result]
value
 of function declared with
      warn_unused_result attribute [-Wunused-result]
  holder->SetPrototype(context, v8::Null(isolate));
  ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

This commit adds a check to avoid this warning.

PR-URL: #89
Reviewed-By: James M Snell <jasnell@gmail.com>
jasnell pushed a commit that referenced this pull request May 31, 2017
Currently the following compiler warning is displayed:
 /out/Debug/obj.target/node/src/node_http2.o
../src/node_http2.cc
../src/node_http2.cc:../src/node_http2.cc838::8383::3 : warning:
warning: ignoring return value of function declared with
      warn_unused_result ignoringattribute  return[-Wunused-result]
value
 of function declared with
      warn_unused_result attribute [-Wunused-result]
  holder->SetPrototype(context, v8::Null(isolate));
  ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

This commit adds a check to avoid this warning.

PR-URL: #89
Reviewed-By: James M Snell <jasnell@gmail.com>
jasnell pushed a commit to jasnell/http2-1 that referenced this pull request Jun 22, 2017
Currently the following compiler warning is displayed:
 /out/Debug/obj.target/node/src/node_http2.o
../src/node_http2.cc
../src/node_http2.cc:../src/node_http2.cc838::8383::3 : warning:
warning: ignoring return value of function declared with
      warn_unused_result ignoringattribute  return[-Wunused-result]
value
 of function declared with
      warn_unused_result attribute [-Wunused-result]
  holder->SetPrototype(context, v8::Null(isolate));
  ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

This commit adds a check to avoid this warning.

PR-URL: nodejs#89
Reviewed-By: James M Snell <jasnell@gmail.com>
jasnell pushed a commit to jasnell/http2-1 that referenced this pull request Jul 10, 2017
Currently the following compiler warning is displayed:
 /out/Debug/obj.target/node/src/node_http2.o
../src/node_http2.cc
../src/node_http2.cc:../src/node_http2.cc838::8383::3 : warning:
warning: ignoring return value of function declared with
      warn_unused_result ignoringattribute  return[-Wunused-result]
value
 of function declared with
      warn_unused_result attribute [-Wunused-result]
  holder->SetPrototype(context, v8::Null(isolate));
  ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

This commit adds a check to avoid this warning.

PR-URL: nodejs#89
Reviewed-By: James M Snell <jasnell@gmail.com>
jasnell pushed a commit to jasnell/http2-1 that referenced this pull request Jul 14, 2017
Currently the following compiler warning is displayed:
 /out/Debug/obj.target/node/src/node_http2.o
../src/node_http2.cc
../src/node_http2.cc:../src/node_http2.cc838::8383::3 : warning:
warning: ignoring return value of function declared with
      warn_unused_result ignoringattribute  return[-Wunused-result]
value
 of function declared with
      warn_unused_result attribute [-Wunused-result]
  holder->SetPrototype(context, v8::Null(isolate));
  ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

This commit adds a check to avoid this warning.

PR-URL: nodejs#89
Reviewed-By: James M Snell <jasnell@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants