From ce1dbbc4fdd7ab6fab4f31a0e54d9ca97afe74a9 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 27 May 2016 11:26:14 -0400 Subject: Enable the -Waggregate-return warning Suppress it in the one spot in the code where we actually do want to allow an aggregate return in order to call the mallinfo() API. --- src/common/util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common') diff --git a/src/common/util.c b/src/common/util.c index 78afe5954f..925431d181 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -342,6 +342,7 @@ tor_free_(void *mem) tor_free(mem); } +DISABLE_GCC_WARNING(aggregate-return) /** Call the platform malloc info function, and dump the results to the log at * level severity. If no such function exists, do nothing. */ void @@ -369,6 +370,7 @@ tor_log_mallinfo(int severity) ); #endif } +ENABLE_GCC_WARNING(aggregate-return) /* ===== * Math -- cgit v1.2.3-54-g00ecf