Skip to content

Commit

Permalink
Merge pull request BehaviorTree#714 from tony-p/fix/lock-compiler-war…
Browse files Browse the repository at this point in the history
…ning

Fix last 2 compiler warnings
  • Loading branch information
facontidavide authored Dec 6, 2023
2 parents b3c3c25 + f47875d commit 17e5967
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions 3rdparty/minitrace/minitrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

#ifdef _WIN32
#pragma warning (disable:4996)
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#define __thread __declspec(thread)
#define pthread_mutex_t CRITICAL_SECTION
Expand Down
2 changes: 1 addition & 1 deletion include/behaviortree_cpp/blackboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class Blackboard
// this is not the first time we set this entry, we need to check
// if the type is the same or not.
Entry& entry = *it->second;
std::scoped_lock lock(entry.entry_mutex);
std::scoped_lock scoped_lock(entry.entry_mutex);

Any& previous_any = entry.value;

Expand Down

0 comments on commit 17e5967

Please sign in to comment.