Commit 182a6383 authored by Daniel Black's avatar Daniel Black

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
parent 7fb1f919
...@@ -1182,6 +1182,7 @@ in the event that you want all of the memory to be dumped ...@@ -1182,6 +1182,7 @@ in the event that you want all of the memory to be dumped
to a core file. to a core file.
Returns number of errors found in madvise calls. */ Returns number of errors found in madvise calls. */
MY_ATTRIBUTE((used))
int int
buf_madvise_do_dump() buf_madvise_do_dump()
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment