Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nstepien committed May 20, 2018
1 parent b5b50dd commit 9576d67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/dec/stream_decode.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ napi_value StreamDecode::Transform(napi_env env, napi_callback_info info) {

napi_queue_async_work(env, work);
} else {
napi_status status;
napi_status status = napi_ok;
ExecuteDecode(env, obj);
CompleteDecode(env, status, obj);
}
Expand Down Expand Up @@ -122,7 +122,7 @@ napi_value StreamDecode::Flush(napi_env env, napi_callback_info info) {

napi_queue_async_work(env, work);
} else {
napi_status status;
napi_status status = napi_ok;
ExecuteDecode(env, obj);
CompleteDecode(env, status, obj);
}
Expand Down
4 changes: 2 additions & 2 deletions src/enc/stream_encode.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ napi_value StreamEncode::Transform(napi_env env, napi_callback_info info) {

napi_queue_async_work(env, work);
} else {
napi_status status;
napi_status status = napi_ok;
ExecuteEncode(env, obj);
CompleteEncode(env, status, obj);
}
Expand Down Expand Up @@ -169,7 +169,7 @@ napi_value StreamEncode::Flush(napi_env env, napi_callback_info info) {

napi_queue_async_work(env, work);
} else {
napi_status status;
napi_status status = napi_ok;
ExecuteEncode(env, obj);
CompleteEncode(env, status, obj);
}
Expand Down

0 comments on commit 9576d67

Please sign in to comment.