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.
This commit is contained in:
Paul Eggert committed 2021-08-22 13:10:26 -07:00
1 parent 3c18082822
commit b020d456d1
1 file changed
+4 -1
+4 -1
View File
@@ -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;