Browse Source

[clang-build] explictly define destructor of mostly empty template class.

without this new versions of clang++ seem to complain that instantiation of
the class results in an unused variable.
JINMEI Tatuya 12 years ago
parent
commit
23da2f078a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/lib/util/locks.h

+ 3 - 2
src/lib/util/locks.h

@@ -42,13 +42,14 @@ class upgradable_mutex {
 template <typename T>
 class sharable_lock {
 public:
-    sharable_lock(T) { }
+    sharable_lock(T) {}
 };
 
 template <typename T>
 class scoped_lock {
 public:
-    scoped_lock(T) { }
+    scoped_lock(T) {}
+    ~scoped_lock() {}
 
     void lock() {}
     void unlock() {}