Fix compilation on gcc 11.2.0

It is used in the out-of date Ubuntu 21.10 Impish.
This commit is contained in:
Sergei Petrunia 2023-04-13 20:13:13 +03:00
parent fb72dfbf7f
commit 6c196090c8

View file

@ -242,9 +242,9 @@ enum rec_leaf_format {
REC_LEAF_INSTANT REC_LEAF_INSTANT
}; };
#if defined __GNUC__ && !defined __clang__ && __GNUC__ < 11 #if defined __GNUC__ && !defined __clang__ && __GNUC__ < 12
# pragma GCC diagnostic push # pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wconversion" /* GCC 5 to 10 need this */ # pragma GCC diagnostic ignored "-Wconversion" /* GCC 5 to 11 need this */
#endif #endif
/** Determine the offset to each field in a leaf-page record /** Determine the offset to each field in a leaf-page record
in ROW_FORMAT=COMPACT,DYNAMIC,COMPRESSED. in ROW_FORMAT=COMPACT,DYNAMIC,COMPRESSED.