all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Fussner via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 43135@debbugs.gnu.org
Subject: bug#43135: 28.0.50; image.c compiler warning
Date: Mon, 31 Aug 2020 14:52:44 +0100	[thread overview]
Message-ID: <CADF+Rtik-UM7CWfqQPadgHJot+v=Xv8_OvTfAYUd4Pt-AYuevw@mail.gmail.com> (raw)

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.

If my toolchain is outdated please forgive and ignore the noise.

Thanks,

David.

In GNU Emacs 28.0.50 (build 36, i686-pc-linux-gnu, GTK+ Version
3.18.9, cairo version 1.14.6)
 of 2020-08-31 built on newfont
Repository revision: 58d962379546762c7eead8fc69c4c136bed8256b
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.11803000
System Description: Slackware 14.2

Configured using:
 'configure
 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig'

Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY
INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS
GTK3 X11 XDBE XIM MODULES THREADS PDUMPER LCMS2

Important settings:
  value of $LC_COLLATE: C
  value of $LANG: en_US.ISO8859-1
  locale-coding-system: iso-latin-1-unix





             reply	other threads:[~2020-08-31 13:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-31 13:52 David Fussner via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2020-09-01 18:55 ` bug#43135: 28.0.50; image.c compiler warning Alan Third
2020-09-02  6:34   ` David Fussner via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-09-03 19:57     ` Alan Third

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADF+Rtik-UM7CWfqQPadgHJot+v=Xv8_OvTfAYUd4Pt-AYuevw@mail.gmail.com' \
    --to=bug-gnu-emacs@gnu.org \
    --cc=43135@debbugs.gnu.org \
    --cc=dfussner@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.