[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43135: 28.0.50; image.c compiler warning
From: |
Alan Third |
Subject: |
bug#43135: 28.0.50; image.c compiler warning |
Date: |
Tue, 1 Sep 2020 20:55:29 +0200 (CEST) |
On Mon, Aug 31, 2020 at 02:52:44PM +0100, David Fussner via Bug reports for GNU
Emacs, the Swiss army knife of text editors wrote:
> For the last week or so I'm seeing this warning when compiling master,
> always using the simple command 'make' in the git repo:
>
> CC image.o
> image.c: In function 'svg_load_image':
> image.c:9892:3: warning: implicit declaration of function 'free'
> [-Wimplicit-function-declaration]
> free (wrapped_contents);
> ^
> image.c:9892:3: warning: incompatible implicit declaration of built-in
> function 'free'
> image.c:9892:3: note: include '<stdlib.h>' or provide a declaration of
> 'free'
>
> This is a 32-bit build, and Slackware 14.2's gcc is 5.5.0. The
> executable runs just fine.
>
> The warning appears after commit
> 8f42b94fe43911c6b0c7e519ba439d61459dc744 by Alan Third:
> Set basic SVG attributes (bug#40845)
>
> Including <stdlib.h> at the top of image.c does silence the warning.
Hi, can you please try the attached patch.
--
Alan Third
0001-src-image.c-svg_load_image-Use-xmalloc-and-xfree.-bu.patch
Description: Text document
- bug#43135: 28.0.50; image.c compiler warning,
Alan Third <=