mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-13 04:46:15 +01:00
ghash: Move initialisation to declaration
This introduces no functional changes, but should squash a warning from `scan-build`: ``` ../../../glib/ghash.c:575:3: warning: Value stored to 'small' is never read small = FALSE; ``` Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
06587fbfd7
commit
271db1f409
@ -565,13 +565,12 @@ g_hash_table_remove_node (GHashTable *hash_table,
|
||||
static void
|
||||
g_hash_table_setup_storage (GHashTable *hash_table)
|
||||
{
|
||||
gboolean small;
|
||||
gboolean small = FALSE;
|
||||
|
||||
/* We want to use small arrays only if:
|
||||
* - we are running on a system where that makes sense (64 bit); and
|
||||
* - we are not running under valgrind.
|
||||
*/
|
||||
small = FALSE;
|
||||
|
||||
#ifdef USE_SMALL_ARRAYS
|
||||
small = TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user