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:
Philip Withnall 2020-10-14 12:58:25 +01:00
parent 06587fbfd7
commit 271db1f409

View File

@ -565,13 +565,12 @@ g_hash_table_remove_node (GHashTable *hash_table,
static void static void
g_hash_table_setup_storage (GHashTable *hash_table) g_hash_table_setup_storage (GHashTable *hash_table)
{ {
gboolean small; gboolean small = FALSE;
/* We want to use small arrays only if: /* We want to use small arrays only if:
* - we are running on a system where that makes sense (64 bit); and * - we are running on a system where that makes sense (64 bit); and
* - we are not running under valgrind. * - we are not running under valgrind.
*/ */
small = FALSE;
#ifdef USE_SMALL_ARRAYS #ifdef USE_SMALL_ARRAYS
small = TRUE; small = TRUE;