Fix compiler warnings

This commit is contained in:
petrzjunior
2020-01-25 16:48:14 +01:00
parent f300d5e0a6
commit acb4e8527a
4 changed files with 5 additions and 5 deletions

View File

@@ -331,7 +331,7 @@ NAN_METHOD(CardReader::Close) {
info.GetReturnValue().Set(Nan::New<Number>(result));
}
void CardReader::HandleReaderStatusChange(uv_async_t *handle, int status) {
void CardReader::HandleReaderStatusChange(uv_async_t *handle) {
Nan::HandleScope scope;

View File

@@ -107,7 +107,7 @@ class CardReader: public Nan::ObjectWrap {
static NAN_METHOD(Control);
static NAN_METHOD(Close);
static void HandleReaderStatusChange(uv_async_t *handle, int status);
static void HandleReaderStatusChange(uv_async_t *handle);
static void HandlerFunction(void* arg);
static void DoConnect(uv_work_t* req);
static void DoDisconnect(uv_work_t* req);

View File

@@ -63,9 +63,9 @@ PCSCLite::PCSCLite(): m_card_context(0),
WaitForSingleObject(seInfo.hProcess, INFINITE);
CloseHandle(seInfo.hProcess);
}
postServiceCheck:
#endif // _WIN32
postServiceCheck:
LONG result;
do {
result = SCardEstablishContext(SCARD_SCOPE_SYSTEM,
@@ -166,7 +166,7 @@ NAN_METHOD(PCSCLite::Close) {
info.GetReturnValue().Set(Nan::New<Number>(result));
}
void PCSCLite::HandleReaderStatusChange(uv_async_t *handle, int status) {
void PCSCLite::HandleReaderStatusChange(uv_async_t *handle) {
Nan::HandleScope scope;

View File

@@ -41,7 +41,7 @@ class PCSCLite: public Nan::ObjectWrap {
static NAN_METHOD(Start);
static NAN_METHOD(Close);
static void HandleReaderStatusChange(uv_async_t *handle, int status);
static void HandleReaderStatusChange(uv_async_t *handle);
static void HandlerFunction(void* arg);
static void CloseCallback(uv_handle_t *handle);