From 72b08a80c8820d505e061e2511ac9244b28edfbb Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 9 Mar 2007 16:27:14 -0500 Subject: [PATCH] COMP: Fixed unreferenced parameter warning for VS6 with /W4. --- Source/kwsys/hashtable.hxx.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/kwsys/hashtable.hxx.in b/Source/kwsys/hashtable.hxx.in index 76043534d..ee0305170 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 inline size_t hash_sizeof(TPtr p) { return sizeof(*p); } +template inline size_t hash_sizeof(TPtr p) +{ + static_cast(p); + return sizeof(*p); +} template inline TSize hash_allocator_n(POut out, PIn in, TSize n) {