Fixed Cppcheck warnings
[libcds.git] / cds / sync / spinlock.h
index b1dfe82810e9168ccb1e102a797e65ee0075c518..42f842421a3520c388f189474cece86d9a29237c 100644 (file)
@@ -59,7 +59,7 @@ namespace cds {
             /**
                 In debug mode: if \p bLocked = true then spin-lock is made owned by current thread
             */
-            spin_lock( bool bLocked ) CDS_NOEXCEPT
+            explicit spin_lock( bool bLocked ) CDS_NOEXCEPT
 #    ifdef CDS_DEBUG
                 : m_dbgOwnerId( bLocked ? cds::OS::get_current_thread_id() : cds::OS::c_NullThreadId )
 #    endif