summaryrefslogtreecommitdiff
path: root/storage/innobase/fil/fil0fil.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/fil/fil0fil.cc')
-rw-r--r--storage/innobase/fil/fil0fil.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/storage/innobase/fil/fil0fil.cc b/storage/innobase/fil/fil0fil.cc
index 4ea9eae809a..1b217dd4b6f 100644
--- a/storage/innobase/fil/fil0fil.cc
+++ b/storage/innobase/fil/fil0fil.cc
@@ -4388,12 +4388,10 @@ fil_io(
ut_ad(byte_offset < srv_page_size);
ut_ad(!page_size.is_compressed() || byte_offset == 0);
ut_ad(srv_page_size == 1UL << srv_page_size_shift);
-#if (1 << UNIV_PAGE_SIZE_SHIFT_MAX) != UNIV_PAGE_SIZE_MAX
-# error "(1 << UNIV_PAGE_SIZE_SHIFT_MAX) != UNIV_PAGE_SIZE_MAX"
-#endif
-#if (1 << UNIV_PAGE_SIZE_SHIFT_MIN) != UNIV_PAGE_SIZE_MIN
-# error "(1 << UNIV_PAGE_SIZE_SHIFT_MIN) != UNIV_PAGE_SIZE_MIN"
-#endif
+ compile_time_assert((1U << UNIV_PAGE_SIZE_SHIFT_MAX)
+ == UNIV_PAGE_SIZE_MAX);
+ compile_time_assert((1U << UNIV_PAGE_SIZE_SHIFT_MIN)
+ == UNIV_PAGE_SIZE_MIN);
ut_ad(fil_validate_skip());
/* ibuf bitmap pages must be read in the sync AIO mode: */