diff options
author | Brad King <brad.king@kitware.com> | 2007-03-09 21:27:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-03-09 21:27:14 (GMT) |
commit | 72b08a80c8820d505e061e2511ac9244b28edfbb (patch) | |
tree | 4cff88d6f11813ec74237e3e43ca72ab37b74ab4 | |
parent | ade0fb94d8f0c79300c1038018b37871836b9454 (diff) | |
download | CMake-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.in | 6 |
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) { |