]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2340] explictly define destructor of mostly empty template class.
authorJINMEI Tatuya <jinmei@isc.org>
Sun, 7 Oct 2012 17:13:58 +0000 (10:13 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Thu, 11 Oct 2012 17:03:58 +0000 (10:03 -0700)
without this new versions of clang++ seem to complain that instantiation of
the class results in an unused variable.

src/lib/util/locks.h

index da9e9cd89c4212ced6422b37c423c44074c51ebb..3b51a5ad447b260fe9f3b3c9f1c7d9bdbfcbc4b1 100644 (file)
@@ -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() {}