From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: warnings compiling emacs28 with gcc 12.1 Date: Thu, 28 Jul 2022 20:13:40 +0200 Message-ID: <87tu71umuj.fsf@gnus.org> References: <87h731vrmw.fsf@mail.jao.io> <83o7x9892n.fsf@gnu.org> <874jz1up5c.fsf@mail.jao.io> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13413"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: "Jose A. Ortega Ruiz" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 28 20:14:39 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oH81s-0003DW-Ok for ged-emacs-devel@m.gmane-mx.org; Thu, 28 Jul 2022 20:14:36 +0200 Original-Received: from localhost ([::1]:40508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oH81r-0006sK-3n for ged-emacs-devel@m.gmane-mx.org; Thu, 28 Jul 2022 14:14:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oH81G-0006Df-FE for emacs-devel@gnu.org; Thu, 28 Jul 2022 14:13:58 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:52640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oH815-0001EM-26; Thu, 28 Jul 2022 14:13:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Ymp2mTngoQUn76ORZji2YU1N83PZNDPp6WbeZnxalws=; b=p/pZeKljnaBG1yOTEuU/FTfbmu C77XH+tgzbacoyfrLlSUvClbxYPO/HPiVclhs1eQyhL01CU9HGPrLypRDK0wErdEbDefOeFZud2Fs XDqWBwaBg3gZsdXQpjGNB+zAdLRV1VLIB48m1WA7agfUIYZjX+7ao9A0Gb2EbBtdZQJA=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oH80z-0005SS-23; Thu, 28 Jul 2022 20:13:43 +0200 In-Reply-To: <874jz1up5c.fsf@mail.jao.io> (Jose A. Ortega Ruiz's message of "Thu, 28 Jul 2022 18:23:59 +0100") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAM1BMVEXe3+D+/v7p6unO z9PT1NjMzdGwsbTFxsqOjo9/f4C8vcFubm++v8NPTk0uKyhBPj3////aU16RAAAAAWJLR0QQlbIN LAAAAAd0SU1FB+YHHBIMIsJRH/4AAAF7SURBVEjH7ZTrkoMgDEYRcisRff+33S/ott0dwT5AM/xx 5hxICDGlJS+zyIVYSiG1QvGZluWOJ1GC8JAU8I2QubBoYSaqLonuhMzMsoIvZCYuRHOh8zV4JnHT hzGlOV9kZdaizfLqom4zAbz2YG3bZhlZYaUJr0WED34PQ12qD4VcFPdz8s23MNhM06htwUvPyfcN a983S2oyEjrfKxBHBVtrUYfilvLN/uYCtJm03V1pIBCXeuaDAnbU4GQejdM04mvPp3rbG5abGJqA B5Ku+TN/xAPZIxlI4PW604n1ySsDdn5sm1OJuEwp6VsgqyYSPKPma+EwzlO4348TIx/EoNNhPOtA JxxPtgvDiUshPA1BOhVjR3k8D0nrr4G9402h4jybuHwY3B8gC3iOJqfxPyPHa4KBqBjTg58JMRGy 9jNqaAc5E2Im4owS6Z/8XHgzfvkbAUZc0Gv/W2HJ/QXx6zLvhDDojb8XYLzzHwj/ftgfCH/jK3yF r/CKH1oSFlejsGTaAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA3LTI4VDE4OjEyOjM0KzAwOjAw t2o1pwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNy0yOFQxODoxMjozNCswMDowMMY3jRsAAAAA SUVORK5CYII= X-Now-Playing: Bob Hund's _Ingenting_: "Kompromissen" Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:292801 Archived-At: "Jose A. Ortega Ruiz" writes: > Fair enough. A curious fact is that the master branch compiles cleanly > with the same GCC version, without any warning at all in fact. I guess > someone already took the time to pacify non-sense warnings. Yes, they were fixed on the trunk by: commit 0f731c49e6a8ccf3aa4c30c3f8ca82ed0a2cefb7 Author: Paul Eggert AuthorDate: Thu May 12 17:01:10 2022 -0700 Pacify GCC 12 in default developer build For instance: * src/term.c (Fsuspend_tty): Don=E2=80=99t look at a pointer after free= ing it, even just to test it for equality with some other pointer, as this has undefined behavior in C and GCC 12 diagnoses this.