From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32230: 27.0.50; GCC 7 warning due to -Wformat-overflow Date: Sat, 21 Jul 2018 15:47:43 +0300 Message-ID: <83r2jwycuo.fsf@gnu.org> References: <2d9037f1-e52f-f3ca-7c53-e203ea6ae520@cornell.edu> <83fu0dyt9r.fsf@gnu.org> <83effxyrqg.fsf@gnu.org> <98054dba-8229-9625-d02a-af7fbd06a9d7@cornell.edu> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1532177168 28254 195.159.176.226 (21 Jul 2018 12:46:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 21 Jul 2018 12:46:08 +0000 (UTC) Cc: 32230@debbugs.gnu.org, eggert@cs.ucla.edu To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 21 14:46:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1fgrGr-0007Bn-LB for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Jul 2018 14:46:01 +0200 Original-Received: from localhost ([::1]:52253 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgrIy-0008U0-7n for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Jul 2018 08:48:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgrIr-0008Tk-Nx for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2018 08:48:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fgrIo-0007Jh-Mr for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2018 08:48:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45305) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fgrIo-0007Jc-Ho for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2018 08:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fgrIo-0004Ky-Aj for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2018 08:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Jul 2018 12:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32230 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32230-submit@debbugs.gnu.org id=B32230.153217727916663 (code B ref 32230); Sat, 21 Jul 2018 12:48:02 +0000 Original-Received: (at 32230) by debbugs.gnu.org; 21 Jul 2018 12:47:59 +0000 Original-Received: from localhost ([127.0.0.1]:50323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgrIh-0004Kb-Hk for submit@debbugs.gnu.org; Sat, 21 Jul 2018 08:47:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39815) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgrIf-0004FJ-3t for 32230@debbugs.gnu.org; Sat, 21 Jul 2018 08:47:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fgrIZ-0007HB-2K for 32230@debbugs.gnu.org; Sat, 21 Jul 2018 08:47:47 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60592) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgrIV-0007FC-6X; Sat, 21 Jul 2018 08:47:43 -0400 Original-Received: from [176.228.60.248] (port=2501 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fgrIT-0004Be-3y; Sat, 21 Jul 2018 08:47:42 -0400 In-reply-to: <98054dba-8229-9625-d02a-af7fbd06a9d7@cornell.edu> (message from Ken Brown on Sat, 21 Jul 2018 08:42:09 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:148777 Archived-At: > Cc: 32230@debbugs.gnu.org, eggert@cs.ucla.edu > From: Ken Brown > Date: Sat, 21 Jul 2018 08:42:09 -0400 > > > I meant sprintf, of course. And if the above is the reason, then > > perhaps using something like > > > > (unsigned int) glyph->u.glyphless.ch & 0xffffff > > > > is a cleaner solution (assuming it shuts up the warning)? > > Yes, it does shut up the warning. Thanks, I'll make that change. I > assume it should go to master, or would you rather have it in the > emacs-26 branch? I think it should go to master, thanks.