Skip to content

Commit 2ec053c

Browse files
committed
Fix warnings.
1 parent 426e478 commit 2ec053c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

cppan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ local_settings:
66
#use_cache: true
77
builds:
88
vs_release:
9-
generator: Visual Studio 15 2017 Win64
9+
generator: Visual Studio 15 2017 #Win64
1010

1111
vs_preview:
1212
c_compiler: c:/Program Files (x86)/Microsoft Visual Studio/Preview/Community/VC/Tools/MSVC/14.12.25805/bin/Hostx64/x64/cl.exe

src/builder/db_file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static void load(const path &fn, ConcurrentHashMap<path, FileRecord> &files, std
5252
size_t n;
5353
fread(&n, sizeof(n), 1, fp);
5454

55-
for (int i = 0; i < n; i++)
55+
for (size_t i = 0; i < n; i++)
5656
{
5757
int64_t h2;
5858
fread(&h2, sizeof(h2), 1, fp);

src/client/client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void setup_log(const std::string &log_level);
7575
std::tuple<bool, std::string> parseCmd(int argc, char **argv);
7676

7777
#ifdef _WIN32
78-
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR pCmdLine, int nCmdShow)
78+
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR pCmdLine, int nCmdShow)
7979
{
8080
const std::wstring s = GetCommandLine();
8181
bConsoleMode = s.find(L"uri sw:") == -1;

0 commit comments

Comments
 (0)