Skip to content
Browse files

BUILD: Fix GCC bogus warning by removing const

GCC emits "warning: type qualifiers ignored on cast result type" when
some types are used for HashMap because of the const modifier.
This applies especially to pointer-to-member-functions.
The const there is not really useful as it only prevents unfortunate
object editions.
  • Loading branch information...
lephilousophe authored and bluegr committed Aug 31, 2019
1 parent 3827000 commit 5cc574a6958e932b1e1defc26bad7fc8eef9826b
Showing with 1 addition and 1 deletion.
  1. +1 −1 common/hashmap.h
@@ -114,7 +114,7 @@ class HashMap {

/** Default value, returned by the const getVal. */
const Val _defaultVal;
Val _defaultVal;

Node **_storage; ///< hashtable of size arrsize.
size_type _mask; ///< Capacity of the HashMap minus one; must be a power of two of minus one

0 comments on commit 5cc574a

Please sign in to comment.
You can’t perform that action at this time.