diff options
Diffstat (limited to 'Source/kwsys')
-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) { |