From 182a6383cdb2c7da6f57f117b9e51ae6899a124b Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Mon, 1 Aug 2022 22:00:05 +1000 Subject: [PATCH] MDEV-16605 Always include buf_madvise_do_dump in binaries The "used" attribute seems to do this ref: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes --- storage/innobase/buf/buf0buf.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/innobase/buf/buf0buf.cc b/storage/innobase/buf/buf0buf.cc index 90d0011b675..e4332fc3f32 100644 --- a/storage/innobase/buf/buf0buf.cc +++ b/storage/innobase/buf/buf0buf.cc @@ -1182,6 +1182,7 @@ in the event that you want all of the memory to be dumped to a core file. Returns number of errors found in madvise calls. */ +MY_ATTRIBUTE((used)) int buf_madvise_do_dump() {