Skip to content

Commit f462fe8

Browse files
committed
vs2017 warnings fix
1 parent 4487cd7 commit f462fe8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/fetchurl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ class AppliedHeaders {
142142
return headers.back();
143143
}
144144

145-
void set_slist(struct curl_slist* slist) {
146-
this->slist = slist;
145+
void set_slist(struct curl_slist* cslist) {
146+
this->slist = cslist;
147147
}
148148

149149
private:

src/notifier.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,11 @@ HRESULT CALLBACK link_clicked_callback(HWND hwnd, UINT uNotification, WPARAM /*
212212
}
213213
TRACER.trace("update proceed selected");
214214
HINSTANCE res = ShellExecuteW(NULL, NULL, reinterpret_cast<LPCTSTR> (lParam), NULL, NULL, SW_SHOW);
215+
#pragma warning(push)
216+
#pragma warning(disable : 4311) // 'reinterpret_cast': pointer truncation from 'HINSTANCE' to 'int'
217+
#pragma warning(disable : 4302) // 'reinterpret_cast': truncation from 'HINSTANCE' to 'int'
215218
int intres = reinterpret_cast<int> (res);
219+
#pragma warning(pop)
216220
bool success = intres > 32;
217221
if (!success) {
218222
TRACER.trace("'ShellExecuteW' fail, error: [" + ch::utils::to_string(intres) + "]");

0 commit comments

Comments
 (0)