From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.devel Subject: Re: Suspicious warning in W64 build Date: Thu, 7 Sep 2017 21:02:05 +0100 Message-ID: References: <1017454172.910810.1504618695244@mail.libero.it> <83tw0ezgi1.fsf@gnu.org> <1146932094.13821.1504798935795@mail.libero.it> <83mv66z66p.fsf@gnu.org> <102a4c21-c275-c73e-ec53-0d85975dc968@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1504814653 15805 195.159.176.226 (7 Sep 2017 20:04:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 7 Sep 2017 20:04:13 +0000 (UTC) Cc: Eli Zaretskii , Angelo Graziosi , Emacs Development To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 07 22:03:57 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dq31l-0003ND-30 for ged-emacs-devel@m.gmane.org; Thu, 07 Sep 2017 22:03:53 +0200 Original-Received: from localhost ([::1]:42061 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dq31q-0000Ul-UT for ged-emacs-devel@m.gmane.org; Thu, 07 Sep 2017 16:04:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dq30l-0000Kl-Ad for emacs-devel@gnu.org; Thu, 07 Sep 2017 16:02:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dq30c-0002JU-3M for emacs-devel@gnu.org; Thu, 07 Sep 2017 16:02:51 -0400 Original-Received: from mail-vk0-x234.google.com ([2607:f8b0:400c:c05::234]:36687) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dq30X-0002FZ-2h; Thu, 07 Sep 2017 16:02:37 -0400 Original-Received: by mail-vk0-x234.google.com with SMTP id v203so1111730vkv.3; Thu, 07 Sep 2017 13:02:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=wd/vCmnlOH9G00033pnRvsz6tf11eWPVTJn771DAPEI=; b=kbS1axAMd1JV7riB7iB7R3t5vdpv4TeAMPHiHCR7S5b3IuZwh9dfFtL+JA/0sQVOa0 sTF9EvxOTZ0ojWsOtI1dCr8lle2Ut6rulfRWakw1WyeDRw4pkm3zMxh8blvmZAViKGj4 QdyOJlH/oTNOODJ63EmjidHPRjAXU1rxD0hJJK53wbreMIF0oCy3pIq4Zglc90i0nCC0 5OapwJCoA9dXKELrmjmtgjG+E5ta7iSeYsoUBdrrXFfJyGrcdGalhxzaNz5y3ETvwdt6 JRDtKChwvLAcs93wHTdXod1AdJG2w/epywKOQgUwoRSHJ7xF5N6TyMZgH+LNOQRJvJ7E oYmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wd/vCmnlOH9G00033pnRvsz6tf11eWPVTJn771DAPEI=; b=s1nkkSo3mf2PHGKdx0JGX3QNh71MQ41B48wSVDi+fEUfiF1echlkLsaLgRej4qamwK XF0pvZaNEx1HWbNPlxnUWpaYVnSSyiLetc93xvYW9jUeFZSzuTBv0eaoHpit0pcvcmOq 2pxfUeG/G6+9bnruxMAc/hYlD7YW1Ft4uUjl/pb6ANWRXOD7iMzt6kajbiYF60uLvWTL 618VN8Us6E5KIP0+rxdBJyAeiosrs+tg1MOTloPzAG4+Jjh8ZDamSjvrPOz2AHiaE+/w 4Dr8TmwTlT3x32yYCC6mh1hod2l650U0deHhZuOSylqMtZvq+vQkbc2rAV0dqgFNeVcB eh8g== X-Gm-Message-State: AHPjjUi1+YnFmhjW5naYo0CcoT2Fm+PEqvrjwR0kpkQWRI2CNxgC2Ay9 EZWGiuB+ZbBuPiHjMLhubb1XEsNgIQ== X-Google-Smtp-Source: AOwi7QBIduGfhZEwUF8bJJ1Ky/t/MIE0pYW27buC5ZO7oklxJXpayUwDsaFdCmRF/x0x5bhtq/TvK8pvDnaRUtlrQn8= X-Received: by 10.31.142.72 with SMTP id q69mr283922vkd.81.1504814556325; Thu, 07 Sep 2017 13:02:36 -0700 (PDT) Original-Received: by 10.176.89.48 with HTTP; Thu, 7 Sep 2017 13:02:05 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400c:c05::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217993 Archived-At: On 7 September 2017 at 20:26, Paul Eggert wrote: > Try putting an 'eassume (0 <= nglyphs);' before the line in question. The warning goes away. By the way, there's another warning which is both true and easy to fix. "(1 << ((n) % 32)))" should read "(1u << ((n) % 32)))" on line 2191. CC w32font.o w32font.c: In function 'font_supported_scripts': w32font.c:2191:32: warning: result of '1 << 31' requires 33 bits to represent, but 'int' only has 32 bits [-Wshift-overflow=] if (subranges[(n) / 32] & (1 << ((n) % 32))) \ ^ w32font.c:2246:3: note: in expansion of macro 'SUBRANGE' SUBRANGE (31, Qsymbol); ^~~~~~~~ w32font.c:2191:32: warning: result of '1 << 31' requires 33 bits to represent, but 'int' only has 32 bits [-Wshift-overflow=] if (subranges[(n) / 32] & (1 << ((n) % 32))) \ ^ w32font.c:2308:3: note: in expansion of macro 'SUBRANGE' SUBRANGE (95, Qtai_le); ^~~~~~~~