[Scummvm-git-logs] scummvm master -> 5cc574a6958e932b1e1defc26bad7fc8eef9826b
bluegr
bluegr at gmail.com
Mon Sep 9 16:39:11 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
5cc574a695 BUILD: Fix GCC bogus warning by removing const
Commit: 5cc574a6958e932b1e1defc26bad7fc8eef9826b
https://github.com/scummvm/scummvm/commit/5cc574a6958e932b1e1defc26bad7fc8eef9826b
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2019-09-09T17:39:06+03:00
Commit Message:
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.
Changed paths:
common/hashmap.h
diff --git a/common/hashmap.h b/common/hashmap.h
index 0021841..82dcbe4 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
More information about the Scummvm-git-logs
mailing list