From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: [ulm@gentoo.org: Emacs 22.1 compiler warnings if configured --with-x-toolkit=no] Date: Mon, 04 Jun 2007 01:01:09 -0400 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1180933307 15092 80.91.229.12 (4 Jun 2007 05:01:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Jun 2007 05:01:47 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 04 07:01:45 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hv4hJ-0000yt-9M for ged-emacs-devel@m.gmane.org; Mon, 04 Jun 2007 07:01:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hv4hI-0005Cw-1k for ged-emacs-devel@m.gmane.org; Mon, 04 Jun 2007 01:01:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hv4hC-00058a-Od for emacs-devel@gnu.org; Mon, 04 Jun 2007 01:01:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hv4hB-00057w-UU for emacs-devel@gnu.org; Mon, 04 Jun 2007 01:01:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hv4hB-00057t-QI for emacs-devel@gnu.org; Mon, 04 Jun 2007 01:01:33 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hv4hA-00066z-PZ for emacs-devel@gnu.org; Mon, 04 Jun 2007 01:01:32 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1Hv4gn-0006dr-Rl; Mon, 04 Jun 2007 01:01:09 -0400 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:72184 Archived-At: Would someone please install this in the Emacs 22 branch, and in the trunk, and then ack? ------- Start of forwarded message ------- X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=failed version=3.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 4 Jun 2007 01:02:29 +0200 From: Ulrich Mueller To: bug-gnu-emacs@gnu.org Cc: emacs@gentoo.org Subject: Emacs 22.1 compiler warnings if configured --with-x-toolkit=no 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 #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 #include "XMenuInt.h" int Ulrich _______________________________________________ bug-gnu-emacs mailing list bug-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs ------- End of forwarded message -------