summaryrefslogtreecommitdiff
path: root/src/find-mount-point.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-08-22 12:42:20 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2021-08-22 13:10:26 -0700
commitb020d456d115d2a17b2bd6d2cbd29cd3972b56e9 (patch)
treee0292106eba17ca9fce6a476bfd363f3b9cfd21e /src/find-mount-point.h
parent3c180828220d5e7afe564cc139ccc6f2bc05e826 (diff)
downloadcoreutils-b020d456d115d2a17b2bd6d2cbd29cd3972b56e9.tar.gz
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.
Diffstat (limited to 'src/find-mount-point.h')
-rw-r--r--src/find-mount-point.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/find-mount-point.h b/src/find-mount-point.h
index 028b2500c..a1bbcdc92 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 <https://www.gnu.org/licenses/>. */
-extern char *find_mount_point (char const *, struct stat const *);
+#include <stdlib.h>
+
+extern char *find_mount_point (char const *, struct stat const *)
+ _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE;