Skip to content

Commit

Permalink
fix: compile warning in vs2019 at windows
Browse files Browse the repository at this point in the history
PR-URL: #81
Reviewed-BY: hyj1991 <[email protected]>
  • Loading branch information
hyj1991 authored Jul 25, 2020
1 parent 8b6eabc commit df3987d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/logbypass/gc.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "nan.h"

namespace xprofiler {
typedef struct {
typedef struct GcStatistics {
public:
// total gc times
unsigned int total_gc_times = 0;
Expand Down
4 changes: 2 additions & 2 deletions src/logbypass/heap.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ using v8::HeapStatistics;
heap_space_statistics->name##_space_committed

// heap statistics struct
typedef struct {
typedef struct XprofilerHeapStatistics {
public:
HeapStatistics *handle() { return &heap_statistics_; }
size_t total_heap_size() { return heap_statistics_.total_heap_size(); }
Expand Down Expand Up @@ -59,7 +59,7 @@ typedef struct {
} heap_statistics_t;

// heap space statistics struct
typedef struct {
typedef struct XprofilerHeapSpaceStatistics {
INIT_SPACE_INFO(new)
INIT_SPACE_INFO(old)
INIT_SPACE_INFO(code)
Expand Down
2 changes: 1 addition & 1 deletion src/logbypass/libuv.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace xprofiler {
active_##name##_handles = HANDLE_DEFAULT_VALUE; \
active_and_ref_##name##_handles = HANDLE_DEFAULT_VALUE;

typedef struct {
typedef struct UvHandleStatistics {
INIT_UV_HANDLE(file)
INIT_UV_HANDLE(tcp)
INIT_UV_HANDLE(udp)
Expand Down

0 comments on commit df3987d

Please sign in to comment.