Skip to content

Commit 1cdb45b

Browse files
committed
Add comment: cppcheck-suppress constVariablePointer
1 parent 2d6e2bf commit 1cdb45b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

platform/PosixOSWrapper/PosixThreadFactory.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void PosixThreadFactory::PosixThread::setPriority(int priority)
3535
}
3636

3737
// INHERIT_PRIORITY
38-
OSWrapper::Thread* t = OSWrapper::Thread::getCurrentThread();
38+
OSWrapper::Thread* t = OSWrapper::Thread::getCurrentThread(); // cppcheck-suppress constVariablePointer
3939
int this_priority;
4040
if (t == nullptr) {
4141
this_priority = OSWrapper::Thread::getNormalPriority();

platform/StdCppOSWrapper/StdCppThreadFactory.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void StdCppThreadFactory::StdCppThread::setPriority(int priority)
121121
return;
122122
}
123123
// INHERIT_PRIORITY
124-
OSWrapper::Thread* t = OSWrapper::Thread::getCurrentThread();
124+
OSWrapper::Thread* t = OSWrapper::Thread::getCurrentThread(); // cppcheck-suppress constVariablePointer
125125
int this_priority;
126126
if (t == nullptr) {
127127
this_priority = OSWrapper::Thread::getNormalPriority();

platform/WindowsOSWrapper/WindowsThreadFactory.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void WindowsThreadFactory::WindowsThread::setPriority(int priority)
3636
}
3737

3838
// INHERIT_PRIORITY
39-
OSWrapper::Thread* t = OSWrapper::Thread::getCurrentThread();
39+
OSWrapper::Thread* t = OSWrapper::Thread::getCurrentThread(); // cppcheck-suppress constVariablePointer
4040
int this_priority;
4141
if (t == nullptr) {
4242
this_priority = OSWrapper::Thread::getNormalPriority();

0 commit comments

Comments
 (0)