mtrace: Add attribute nocommon to mallwatch
commite766ce3088e1da976d6fa7903870683b3fed7f17
authorTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Fri, 2 Jul 2021 21:12:13 +0000 (2 18:12 -0300)
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Fri, 2 Jul 2021 21:14:01 +0000 (2 18:14 -0300)
tree5d1b57cc54145014e5c65f1cd8faa0d9fcf6f6b6
parentc501803035d0117cef775d40295a7034d9b293a6
mtrace: Add attribute nocommon to mallwatch

Avoid compilation errors GCC versions that do not default to
-fno-common, e.g. GCC <= 9.

Fixes commit 00d28960c5388a582a0485e07629b553c32dde49 ("mtrace:
Deprecate mallwatch and tr_break").

Suggested-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Suggested-by: Florian Weimer <fweimer@redhat.com>
malloc/mtrace.c