Skip to content

Commit 17e5967

Browse files
Merge pull request #714 from tony-p/fix/lock-compiler-warning
Fix last 2 compiler warnings
2 parents b3c3c25 + f47875d commit 17e5967

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

3rdparty/minitrace/minitrace.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313
#ifdef _WIN32
1414
#pragma warning (disable:4996)
15+
#ifndef WIN32_LEAN_AND_MEAN
1516
#define WIN32_LEAN_AND_MEAN
17+
#endif
1618
#include <windows.h>
1719
#define __thread __declspec(thread)
1820
#define pthread_mutex_t CRITICAL_SECTION

include/behaviortree_cpp/blackboard.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class Blackboard
143143
// this is not the first time we set this entry, we need to check
144144
// if the type is the same or not.
145145
Entry& entry = *it->second;
146-
std::scoped_lock lock(entry.entry_mutex);
146+
std::scoped_lock scoped_lock(entry.entry_mutex);
147147

148148
Any& previous_any = entry.value;
149149

0 commit comments

Comments
 (0)