-
Notifications
You must be signed in to change notification settings - Fork 459
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, test: fix errors and warnings in VS 2017 #1245
Conversation
Hi @vmoroz , can you clarify a bit on:
Which |
For example, here we define a local variable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
c7e27a0
to
e956163
Compare
Kicked off jenkins run here - https://ci.nodejs.org/job/node-test-node-addon-api-new/6750/ Set to only run for windows and Node.js 14.x since I don't think this should affect any other platforms. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
- fix errors and warnings in VS 2017 - remove incorrect use of static keyword PR-URL: #1245 Reviewed-By: Kevin Eady <kevin.c.eady@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com
Landed in 97736c9 |
- fix errors and warnings in VS 2017 - remove incorrect use of static keyword PR-URL: nodejs/node-addon-api#1245 Reviewed-By: Kevin Eady <kevin.c.eady@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com
This PR has fixes for errors and warnings when running
npm test
with Visual Studio 2017.napi-inl.h
has changes to address the same issue as PR src: refactor call js wrapper #1242static
keyword for standalone functions. Eachstatic
function is duplicated in every cpp file that includes the header. Thus, it produces code that is unnecessary bigger.addon_data.cc
- warning about incorrect use of format specifierasync_worker.cc
- unused variable warningbinding.gyp
- no warning - just using the same Python quotes as the rest of the codefunction_reference.cc
- warning about possible buffer overflow. The code is changed to avoid memory leak.threadsafe_function.cc
,typed_threadsafe_function.cc
- warning aboutnapi-inl.h
shadowing thetsfn
global variable declared in these files.