Skip to content

Commit dae945c

Browse files
committed
fix(ipc): eliminate some trivial warnings
1 parent 63d6d9a commit dae945c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

WeaselIPC/WeaselClientImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ LRESULT ClientImpl::_SendMessage(WEASEL_IPC_COMMAND Msg, DWORD wParam, DWORD lPa
198198
PipeMessage req{ Msg, wParam, lParam };
199199
return channel.Transact(req);
200200
}
201-
catch (DWORD ex) {
201+
catch (DWORD /* ex */) {
202202
return 0;
203203
}
204204
}

include/PipeChannel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ namespace weasel {
7070
};
7171

7272
public:
73-
PipeChannel(std::wstring &pn_cmd, SECURITY_ATTRIBUTES *s = NULL, size_t bs = 4 * 1024)
73+
PipeChannel(std::wstring &&pn_cmd, SECURITY_ATTRIBUTES *s = NULL, size_t bs = 4 * 1024)
7474
: PipeChannelBase(pn_cmd, bs, s)
7575
{}
7676

0 commit comments

Comments
 (0)