unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Emacs 22.1 compiler warnings if configured --with-x-toolkit=no
@ 2007-06-03 23:02 Ulrich Mueller
  0 siblings, 0 replies; only message in thread
From: Ulrich Mueller @ 2007-06-03 23:02 UTC (permalink / raw)
  To: bug-gnu-emacs; +Cc: emacs

During compilation of Emacs 22.1 (and 21.4, too) the following
warnings appear:

   i686-pc-linux-gnu-gcc -c  -D_BSD_SOURCE     -D_BSD_SOURCE
   -march=pentium-m -O2 -pipe -DEMACS_BITMAP_FILES -I../src
   -I/var/tmp/portage/app-editors/emacs-22.1/work/emacs-22.1/oldXMenu
   -I/var/tmp/portage/app-editors/emacs-22.1/work/emacs-22.1/oldXMenu/../src
   ChgPane.c
   ChgPane.c: In function 'XMenuChangePane':
   ChgPane.c:46: warning: incompatible implicit declaration of built-in
   function 'strlen'

   i686-pc-linux-gnu-gcc -c  -D_BSD_SOURCE     -D_BSD_SOURCE
   -march=pentium-m -O2 -pipe -DEMACS_BITMAP_FILES -I../src
   -I/var/tmp/portage/app-editors/emacs-22.1/work/emacs-22.1/oldXMenu
   -I/var/tmp/portage/app-editors/emacs-22.1/work/emacs-22.1/oldXMenu/../src
   ChgSel.c
   ChgSel.c: In function 'XMenuChangeSelection':
   ChgSel.c:62: warning: incompatible implicit declaration of built-in
   function 'strlen'

Emacs was configured as follows:

   configure  '--prefix=/usr' '--host=i686-pc-linux-gnu'
   '--mandir=/usr/share/man' '--infodir=/usr/share/info'
   '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib'
   '--program-suffix=-emacs-22' '--infodir=/usr/share/info/emacs-22'
   '--without-carbon' '--with-sound' '--with-x' '--with-xpm'
   '--without-toolkit-scroll-bars' '--with-jpeg' '--with-tiff'
   '--with-gif' '--with-png' '--with-x-toolkit=no' '--without-gtk'
   '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu'
   'host_alias=i686-pc-linux-gnu' 'CFLAGS=-march=pentium-m -O2 -pipe'

This patch should fix the problem:

--- emacs-22.1-orig/oldXMenu/ChgPane.c	2007-02-27 04:04:22.000000000 +0100
+++ emacs-22.1/oldXMenu/ChgPane.c	2007-06-04 00:47:56.000000000 +0200
@@ -13,6 +13,7 @@
  *
  */
 
+#include <config.h>
 #include "XMenuInt.h"
 
 int
--- emacs-22.1-orig/oldXMenu/ChgSel.c	2007-02-27 04:04:22.000000000 +0100
+++ emacs-22.1/oldXMenu/ChgSel.c	2007-06-04 00:47:42.000000000 +0200
@@ -13,6 +13,7 @@
  *
  */
 
+#include <config.h>
 #include "XMenuInt.h"
 
 int


Ulrich

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-03 23:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-03 23:02 Emacs 22.1 compiler warnings if configured --with-x-toolkit=no Ulrich Mueller

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).