[cmake-commits] king committed hashtable.hxx.in 1.17 1.18
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Mar 9 16:27:16 EST 2007
Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv27743
Modified Files:
hashtable.hxx.in
Log Message:
COMP: Fixed unreferenced parameter warning for VS6 with /W4.
Index: hashtable.hxx.in
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/hashtable.hxx.in,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- hashtable.hxx.in 7 Mar 2007 21:00:21 -0000 1.17
+++ hashtable.hxx.in 9 Mar 2007 21:27:14 -0000 1.18
@@ -83,7 +83,11 @@
// Utility functions to convert item counts.
inline size_t hash_sizeof(void*) { return sizeof(char); }
inline size_t hash_sizeof(const void*) { return sizeof(char); }
-template <class TPtr> inline size_t hash_sizeof(TPtr p) { return sizeof(*p); }
+template <class TPtr> inline size_t hash_sizeof(TPtr p)
+{
+ static_cast<void>(p);
+ return sizeof(*p);
+}
template <class POut, class PIn, class TSize>
inline TSize hash_allocator_n(POut out, PIn in, TSize n)
{
More information about the Cmake-commits
mailing list