diff options
author | Le Philousophe | 2019-08-31 19:05:35 +0200 |
---|---|---|
committer | Filippos Karapetis | 2019-09-09 17:39:06 +0300 |
commit | 5cc574a6958e932b1e1defc26bad7fc8eef9826b (patch) | |
tree | 4c1383f37cbf701acb211094e471156cf2b0721d | |
parent | 3827000fe1b34fc3026d4b59b745a54548b22b61 (diff) | |
download | scummvm-rg350-5cc574a6958e932b1e1defc26bad7fc8eef9826b.tar.gz scummvm-rg350-5cc574a6958e932b1e1defc26bad7fc8eef9826b.tar.bz2 scummvm-rg350-5cc574a6958e932b1e1defc26bad7fc8eef9826b.zip |
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.
-rw-r--r-- | common/hashmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/hashmap.h b/common/hashmap.h index 00218417a0..82dcbe4dd2 100644 --- a/common/hashmap.h +++ b/common/hashmap.h @@ -114,7 +114,7 @@ private: #endif /** 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 |