From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.bugs Subject: bug#766: 23.0.60; interesting warning during compilation Date: Sun, 24 Aug 2008 00:23:29 +0200 Message-ID: <904AC839-3CCF-4AE3-956D-D482B0EE1955@Freenet.DE> References: <4762603A-B23E-454E-A43C-422DE5036DC4@Freenet.DE> Reply-To: Peter Dyballa , 766@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219531663 18919 80.91.229.12 (23 Aug 2008 22:47:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Aug 2008 22:47:43 +0000 (UTC) Cc: 766@emacsbugs.donarmstrong.com, bug-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 24 00:48:36 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 1KX1uO-0006D5-0S for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Aug 2008 00:48:36 +0200 Original-Received: from localhost ([127.0.0.1]:33774 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KX1tQ-000326-4D for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Aug 2008 18:47:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KX1tM-00031T-D9 for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2008 18:47:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KX1tL-000312-P0 for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2008 18:47:32 -0400 Original-Received: from [199.232.76.173] (port=37233 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KX1tL-00030u-DM for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2008 18:47:31 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58720) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KX1tK-0006g6-Ud for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2008 18:47:31 -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 m7NMlR0W002523; Sat, 23 Aug 2008 15:47:28 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7NMU8r8029313; Sat, 23 Aug 2008 15:30:08 -0700 X-Loop: don@donarmstrong.com Resent-From: Peter Dyballa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 23 Aug 2008 22:30:07 +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.121953021927346 (code B ref 766); Sat, 23 Aug 2008 22:30:07 +0000 Original-Received: (at 766) by emacsbugs.donarmstrong.com; 23 Aug 2008 22:23:39 +0000 Original-Received: from mout4.freenet.de (mout4.freenet.de [195.4.92.94]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7NMNZu7027340 for <766@emacsbugs.donarmstrong.com>; Sat, 23 Aug 2008 15:23:37 -0700 Original-Received: from [195.4.92.19] (helo=9.mx.freenet.de) by mout4.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (port 25) (Exim 4.69 #19) id 1KX1WA-0005mU-5R; Sun, 24 Aug 2008 00:23:34 +0200 Original-Received: from p5b23c6e0.dip.t-dialin.net ([91.35.198.224]:56776 helo=[192.168.1.2]) by 9.mx.freenet.de with esmtpsa (ID peter_dyballa@freenet.de) (TLSv1:AES128-SHA:128) (port 25) (Exim 4.69 #12) id 1KX1W9-0007Gy-Tl; Sun, 24 Aug 2008 00:23:34 +0200 In-Reply-To: X-Mailer: Apple Mail (2.753.1) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Sat, 23 Aug 2008 18:47:32 -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:19674 Archived-At: Am 23.08.2008 um 19:34 schrieb Eli Zaretskii: >> Could it work to type-cast the variable first into a type wider than >> 32 bits? > > It could, if we could be sure that 64-bit wide integer types are > supported on all platforms. I don't know if they are; does anyone > know? There aren't so many (elderly) systems left ... Besides, isn't the long long, a data type of at least 64 bits, defined in C, ANSI C99 to be exact? Actually, I think, it's sad that no compiler needs to follow this option! Another option is to check whether the size of the variable is bigger than four bytes. -- Greetings Pete Rain is saved up in cloud banks.