Browse Source

COMP: Fixed unreferenced parameter warning for VS6 with /W4.

Brad King 18 years ago
parent
commit
72b08a80c8
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Source/kwsys/hashtable.hxx.in

+ 5 - 1
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)
 {