Skip to content

Commit 2a92cf8

Browse files
committed
MDEV-35000 fixup: GCC 4.8.5 -Wconversion
Old GCC versions would issue bogus -Wconversion. Let us silence this one with a redundant cast.
1 parent b50df7b commit 2a92cf8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

storage/innobase/handler/ha_innodb.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3002,8 +3002,9 @@ static bool innodb_copy_stat_flags(dict_table_t *table,
30023002
static_assert(HA_OPTION_NO_STATS_PERSISTENT ==
30033003
dict_table_t::STATS_PERSISTENT_OFF << 11, "");
30043004
uint32_t stat=
3005-
(table_options &
3006-
(HA_OPTION_STATS_PERSISTENT | HA_OPTION_NO_STATS_PERSISTENT)) >> 11;
3005+
uint32_t(table_options &
3006+
(HA_OPTION_STATS_PERSISTENT |
3007+
HA_OPTION_NO_STATS_PERSISTENT)) >> 11;
30073008
static_assert(uint32_t{HA_STATS_AUTO_RECALC_ON} << 3 ==
30083009
dict_table_t::STATS_AUTO_RECALC_ON, "");
30093010
static_assert(uint32_t{HA_STATS_AUTO_RECALC_OFF} << 3 ==

0 commit comments

Comments
 (0)