src, test: fix errors and warnings in VS 2017#1245
src, test: fix errors and warnings in VS 2017#1245vmoroz wants to merge 2 commits intonodejs:mainfrom
Conversation
|
Hi @vmoroz , can you clarify a bit on:
Which |
For example, here we define a local variable |
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. |
- 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 testwith Visual Studio 2017.napi-inl.hhas changes to address the same issue as PR src: refactor call js wrapper #1242statickeyword for standalone functions. Eachstaticfunction 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.hshadowing thetsfnglobal variable declared in these files.