diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2021-08-22 12:42:20 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-08-22 13:10:26 -0700 |
commit | b020d456d115d2a17b2bd6d2cbd29cd3972b56e9 (patch) | |
tree | e0292106eba17ca9fce6a476bfd363f3b9cfd21e /src/find-mount-point.h | |
parent | 3c180828220d5e7afe564cc139ccc6f2bc05e826 (diff) | |
download | coreutils-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.h | 5 |
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; |