From b020d456d115d2a17b2bd6d2cbd29cd3972b56e9 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 22 Aug 2021 12:42:20 -0700 Subject: [PATCH] df: pacify -Wsuggest-attribute=malloc Problem found with latest Gnulib and GCC 11.2.1. * src/find-mount-point.h (find_mount_point): Add _GL_ATTRIBUTE_MALLOC and _GL_ATTRIBUTE_DEALLOC_FREE. --- src/find-mount-point.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/find-mount-point.h b/src/find-mount-point.h index 028b2500c5..a1bbcdc92d 100644 --- a/src/find-mount-point.h +++ b/src/find-mount-point.h @@ -14,4 +14,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -extern char *find_mount_point (char const *, struct stat const *); +#include + +extern char *find_mount_point (char const *, struct stat const *) + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE; -- 2.47.2