From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#766: 23.0.60; interesting warning during compilation Date: Sat, 23 Aug 2008 17:10:50 +0300 Message-ID: References: <4762603A-B23E-454E-A43C-422DE5036DC4@Freenet.DE> Reply-To: Eli Zaretskii , 766@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1219502868 4089 80.91.229.12 (23 Aug 2008 14:47:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Aug 2008 14:47:48 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Peter Dyballa , 766@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 23 16:48:41 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KWuPt-000747-Se for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Aug 2008 16:48:38 +0200 Original-Received: from localhost ([127.0.0.1]:46113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWuOw-00020l-CZ for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Aug 2008 10:47:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWuOs-00020F-2K for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2008 10:47:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWuOq-0001zl-HK for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2008 10:47:33 -0400 Original-Received: from [199.232.76.173] (port=36054 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWuOq-0001ze-9a for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2008 10:47:32 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50822) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KWuOp-0007L1-Ol for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2008 10:47:32 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7NElRH4009885; Sat, 23 Aug 2008 07:47:28 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7NEj4Cm008715; Sat, 23 Aug 2008 07:45:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Eli Zaretskii Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 23 Aug 2008 14:45:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 766 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 766-submit@emacsbugs.donarmstrong.com id=B766.12195022116736 (code B ref 766); Sat, 23 Aug 2008 14:45:04 +0000 Original-Received: (at 766) by emacsbugs.donarmstrong.com; 23 Aug 2008 14:36:51 +0000 Original-Received: from mtaout4.012.net.il (mtaout4.012.net.il [84.95.2.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7NEaluN006723 for <766@emacsbugs.donarmstrong.com>; Sat, 23 Aug 2008 07:36:49 -0700 Original-Received: from HOME-C4E4A596F7 ([84.229.211.50]) by i_mtaout4.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K62000SU4QX4Z51@i_mtaout4.012.net.il> for 766@emacsbugs.donarmstrong.com; Sat, 23 Aug 2008 17:11:22 +0300 (IDT) In-reply-to: <4762603A-B23E-454E-A43C-422DE5036DC4@Freenet.DE> X-012-Sender: halo1@inter.net.il X-CrossAssassin-Score: 2 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Sat, 23 Aug 2008 10:47:33 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19663 Archived-At: > From: Peter Dyballa > Date: Sat, 23 Aug 2008 11:00:28 +0200 > Cc: > > The warning from gcc 4.0.1 is: > > dired.c:1003: warning: right shift count >= width of type > > /* To allow inode numbers beyond 32 bits, separate into 2 24-bit > high parts and a 16-bit bottom part. */ > EMACS_INT high_ino = s.st_ino >> 32; > EMACS_INT low_ino = s.st_ino & 0xffffffff; This happens on any system whose st_ino is 32 bits or less, because this code needs to cater to systems whose st_ino is wider than 32 bits. If someone has suggestions how to avoid this warning without making code ugly and unreadable, and preferably without system-dependent #ifdef's, I'm all ears.