Skip to content

Commit

Permalink
ROCm: deal with unused variable and function highlighted by clang++ (…
Browse files Browse the repository at this point in the history
…issue #99)
stephanecharette committed Jan 7, 2025
1 parent e7b63c6 commit d2e8cd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src-lib/Timing.cpp
Original file line number Diff line number Diff line change
@@ -3,6 +3,8 @@

namespace
{
#ifdef DARKNET_TIMING_AND_TRACKING_ENABLED

Darknet::TimingRecords & get_tr()
{
/// There is only 1 of these objects. All the the tracking/timing information is stored in this object.
@@ -13,6 +15,8 @@ namespace

/// Mutex used to lock access to @ref tr, to ensure we're not modifying the STL containers at the same time across multiple threads.
std::timed_mutex timing_and_tracking_container_mutex;

#endif
}


0 comments on commit d2e8cd7

Please sign in to comment.