From: JINMEI Tatuya Date: Sun, 7 Oct 2012 17:13:58 +0000 (-0700) Subject: [2340] explictly define destructor of mostly empty template class. X-Git-Tag: trac2402_base~15^2~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73f22adb3400726277f06f9d1f8760e43bcc133f;p=thirdparty%2Fkea.git [2340] 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. --- diff --git a/src/lib/util/locks.h b/src/lib/util/locks.h index da9e9cd89c..3b51a5ad44 100644 --- a/src/lib/util/locks.h +++ b/src/lib/util/locks.h @@ -42,13 +42,14 @@ class upgradable_mutex { template class sharable_lock { public: - sharable_lock(T) { } + sharable_lock(T) {} }; template class scoped_lock { public: - scoped_lock(T) { } + scoped_lock(T) {} + ~scoped_lock() {} void lock() {} void unlock() {}