summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-03-09 21:27:14 (GMT)
committerBrad King <brad.king@kitware.com>2007-03-09 21:27:14 (GMT)
commit72b08a80c8820d505e061e2511ac9244b28edfbb (patch)
tree4cff88d6f11813ec74237e3e43ca72ab37b74ab4
parentade0fb94d8f0c79300c1038018b37871836b9454 (diff)
downloadCMake-72b08a80c8820d505e061e2511ac9244b28edfbb.zip
CMake-72b08a80c8820d505e061e2511ac9244b28edfbb.tar.gz
CMake-72b08a80c8820d505e061e2511ac9244b28edfbb.tar.bz2
COMP: Fixed unreferenced parameter warning for VS6 with /W4.
-rw-r--r--Source/kwsys/hashtable.hxx.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/kwsys/hashtable.hxx.in b/Source/kwsys/hashtable.hxx.in
index 7604353..ee03051 100644
--- a/Source/kwsys/hashtable.hxx.in
+++ b/Source/kwsys/hashtable.hxx.in
@@ -83,7 +83,11 @@ namespace @KWSYS_NAMESPACE@
// 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)
{