Skip to content

Commit

Permalink
fix(ipc): eliminate some trivial warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Prcuvu committed Aug 30, 2018
1 parent 63d6d9a commit dae945c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WeaselIPC/WeaselClientImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ LRESULT ClientImpl::_SendMessage(WEASEL_IPC_COMMAND Msg, DWORD wParam, DWORD lPa
PipeMessage req{ Msg, wParam, lParam };
return channel.Transact(req);
}
catch (DWORD ex) {
catch (DWORD /* ex */) {
return 0;
}
}
Expand Down
2 changes: 1 addition & 1 deletion include/PipeChannel.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ namespace weasel {
};

public:
PipeChannel(std::wstring &pn_cmd, SECURITY_ATTRIBUTES *s = NULL, size_t bs = 4 * 1024)
PipeChannel(std::wstring &&pn_cmd, SECURITY_ATTRIBUTES *s = NULL, size_t bs = 4 * 1024)
: PipeChannelBase(pn_cmd, bs, s)
{}

Expand Down

0 comments on commit dae945c

Please sign in to comment.