bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#43135: 28.0.50; image.c compiler warning


From: David Fussner
Subject: bug#43135: 28.0.50; image.c compiler warning
Date: Wed, 2 Sep 2020 07:34:39 +0100

Hi Alan,

Yes, that works for me. Many thanks for the quick response, and please
close the bug.

David.

On Tue, 1 Sep 2020 at 19:55, Alan Third <alan@idiocy.org> wrote:
>
> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]