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

This commit is contained in:
Brad King 2007-03-09 16:27:14 -05:00
parent ade0fb94d8
commit 72b08a80c8
1 changed files with 5 additions and 1 deletions

View File

@ -83,7 +83,11 @@ namespace @KWSYS_NAMESPACE@
// Utility functions to convert item counts. // Utility functions to convert item counts.
inline size_t hash_sizeof(void*) { return sizeof(char); } inline size_t hash_sizeof(void*) { return sizeof(char); }
inline size_t hash_sizeof(const 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> template <class POut, class PIn, class TSize>
inline TSize hash_allocator_n(POut out, PIn in, TSize n) inline TSize hash_allocator_n(POut out, PIn in, TSize n)
{ {