Skip to content

Commit

Permalink
rm warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ithewei committed Aug 1, 2022
1 parent 274a4f9 commit f13c5ad
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions base/hplatform.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@
#pragma warning (disable: 4100) // unused param
#pragma warning (disable: 4102) // unreferenced label
#pragma warning (disable: 4244) // conversion loss of data
#pragma warning (disable: 4251) // STL dll
#pragma warning (disable: 4275) // dll-interface
#pragma warning (disable: 4267) // size_t => int
#pragma warning (disable: 4819) // Unicode
#pragma warning (disable: 4996) // _CRT_SECURE_NO_WARNINGS
Expand Down
1 change: 1 addition & 0 deletions cpputil/hthreadpool.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ class HThreadPool {
data.id = thread->get_id();
data.status = RUNNING;
data.start_time = time(NULL);
data.stop_time = 0;
threads.emplace_back(data);
thread_mutex.unlock();
}
Expand Down
2 changes: 1 addition & 1 deletion examples/hloop_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ int main() {
memset(&ev, 0, sizeof(ev));
ev.event_type = (hevent_type_e)(HEVENT_TYPE_CUSTOM + i);
ev.cb = on_custom_events;
ev.userdata = (void*)(long)i;
ev.userdata = (void*)(intptr_t)i;
hloop_post_event(loop, &ev);
}

Expand Down
4 changes: 4 additions & 0 deletions hexport.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ struct s

// MSVC ports
#ifdef _MSC_VER

#pragma warning (disable: 4251) // STL dll
#pragma warning (disable: 4275) // dll-interface

#if _MSC_VER < 1900 // < VS2015

#ifndef __cplusplus
Expand Down

0 comments on commit f13c5ad

Please sign in to comment.