From: Paul Eggert Date: Sun, 22 Aug 2021 19:42:20 +0000 (-0700) Subject: df: pacify -Wsuggest-attribute=malloc X-Git-Tag: v9.0~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b020d456d115d2a17b2bd6d2cbd29cd3972b56e9;p=thirdparty%2Fcoreutils.git 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. --- 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;