Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
use preprocessor checks because MSVC is confused and disoriented
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed May 24, 2019
1 parent e18f827 commit fb722d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/async.cc
Expand Up @@ -190,12 +190,16 @@ void FindCredentialsWorker::HandleOKCallback() {
cred.second.data(),
cred.second.length()).ToLocalChecked();

#ifndef _WIN32
#pragma GCC diagnostic ignored "-Wunused-result"
#endif
obj->Set(
Nan::GetCurrentContext(),
Nan::New("account").ToLocalChecked(),
account);
#ifndef _WIN32
#pragma GCC diagnostic ignored "-Wunused-result"
#endif
obj->Set(
Nan::GetCurrentContext(),
Nan::New("password").ToLocalChecked(),
Expand Down

0 comments on commit fb722d0

Please sign in to comment.