Skip to content

Commit 182a638

Browse files
committed
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
1 parent 7fb1f91 commit 182a638

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

storage/innobase/buf/buf0buf.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,7 @@ in the event that you want all of the memory to be dumped
11821182
to a core file.
11831183
11841184
Returns number of errors found in madvise calls. */
1185+
MY_ATTRIBUTE((used))
11851186
int
11861187
buf_madvise_do_dump()
11871188
{

0 commit comments

Comments
 (0)