Skip to content

Commit e7df3b1

Browse files
committed
Fix issue discovered by Coverity Scan
1 parent 42c38a1 commit e7df3b1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CpuTscSync/CpuTscSync.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "CpuTscSync.hpp"
1515

1616
static CpuTscSyncPlugin *callbackCpuf = nullptr;
17+
_Atomic(bool) CpuTscSyncPlugin::kernel_routed = false;
1718
_Atomic(bool) CpuTscSyncPlugin::tsc_synced = false;
1819
_Atomic(bool) CpuTscSyncPlugin::use_trace_point_method_to_sync = false;
1920
_Atomic(bool) CpuTscSyncPlugin::use_clock_get_calendar_to_sync = false;

CpuTscSync/CpuTscSync.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CpuTscSyncPlugin {
2323
void init();
2424

2525
private:
26-
_Atomic(bool) kernel_routed = false;
26+
static _Atomic(bool) kernel_routed;
2727
static _Atomic(bool) tsc_synced;
2828
static _Atomic(bool) use_trace_point_method_to_sync;
2929
static _Atomic(bool) use_clock_get_calendar_to_sync;

0 commit comments

Comments
 (0)