mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
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:
1 parent
3c18082822
commit
b020d456d1
1 file changed
+4
-1
@@ -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;
|
||||
Reference in new issue
Block a user