From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: "Final" version of tty child frames Date: Tue, 22 Oct 2024 19:43:27 +0800 Message-ID: <87iktkqs68.fsf@yahoo.com> References: <86wmi0g0x6.fsf@gnu.org> <4a4cb10e-fe30-4830-b5fe-93d075e12479@gmx.at> 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="7736"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: martin rudalics , Eli Zaretskii , Jared Finder , emacs-devel@gnu.org To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 22 13:44:31 2024 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 1t3DJN-0001uG-8u for ged-emacs-devel@m.gmane-mx.org; Tue, 22 Oct 2024 13:44:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3DIe-0006nE-UR; Tue, 22 Oct 2024 07:43:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3DIc-0006mp-Sd for emacs-devel@gnu.org; Tue, 22 Oct 2024 07:43:42 -0400 Original-Received: from sonic314-20.consmr.mail.ne1.yahoo.com ([66.163.189.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t3DIa-0001bJ-U8 for emacs-devel@gnu.org; Tue, 22 Oct 2024 07:43:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1729597416; bh=RiRMX4RYe8ThDY749eszhq/l60mmw2xfDcxJjOIuRMI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=sLen+SxwzEfGiTjWBiD2ilTKBIHSBdy2ElQk+1SVDJArpGKs6U3crsrx3v3zd9d19RhNicdni+5Y8OId9behQ+t9EO7qOiYsFYYRzi0o4mQ/FgI6joPJgRg9pajHdIMRVmHGqvdrAqejj3vbSt30gGDZZiRlppBh4BFA7VZORYnMRyCBBy4rED4Ev+tTZwdjlv48K0pQS/kovxBlCEV3sjerNytLgt0dyFNhdCz6C4/4iDeaq9nNqK/uDzck9hXYzLh7Tpkfop0KP9pNLK17TkukFO+K/v7VNf2XT7QscJF80tW/yXHx8IXEq0xoLWQ2NC8gnRglxCLu1bZLTxiODA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1729597416; bh=fvk7Zsd6bfcQ3nLh5G2sdllFVsGQLJ/Si0bfcNr+kKr=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Njj1pnk0drShfdtyFEwllOJORilTXMV1YPkGDJoMUELT7hwooFzhjA92RVnKZijwYTlWmy1+LlIS3dtWtqvg5uQorgFikxHGsbPXXhKiUm8PIBmxO9HfKZvD5PP3fe8nZSBGE0aZriDOBp27kFMik+lNXsGNAuCObgeGThJ8DPJG5FetDTm2MUrJe5cmZHvvROOpfHoUZSNFdUlzlIqP4JL6vHx8r0by6Z5lV7LD8GZEsmLTebli3fj4gItnZGsYjIX+B7u+LHMOEdGGmSJxX0tHtKGQ83pJLrqc2rIZtgoNoNmu+HjTHuRjW7oKh7C7sjf+qX5aOBfsS0mUwyRbGA== X-YMail-OSG: ZXhXwm8VM1kks2LfvShhvkVUP71x9UO7oyn6wZpd1AbcFeyfpe032HAbdrS2IyH yoWesyv5NmXUQt0Vk6tOmVeyGMuDxPSpVsRus5.A022.ZxZhc8Jb2kJhvnD_aIIzAQ1UQYrjPLo8 d9mKLIEQOxLo7UjS.55ccVg28lD5Gd7YlMd045yaaWFSFImYikn95uIsSrLufkD2SPW1JWYzIz3r 4qQnGzTXYs4XhiYHlR4SNTLbFiqRguy7P7zAW8aLqnNIMqhOKfCKsMW7cYTbYlfA7UsbWjlEohoz REAA7sJsFd6u.Ctp69gOiLhUUFswWhMFdKOOnuDFBTgpUnclCnKUN_ECFJ81axnRaLZBLtIV7r7s NEZmJ0EJhm7TAITKkRoBaRvUd6Ls8Izp2Dai6zqmPmvPbljtS8WMz2eZ35PojrAHPEQ7PNJXgoUM ppJj1vDt.LMC9NzgqsU_VCkOkgO5u.YIdx3OVrEp0scONDjmlu22FSl2fNfV6PPi7YPmj1ahxaNs RequoM94AvNzANzd78W3es6JQxCv2ohwLD3.vB6VaBMSFYEAeQJB6irPVf7F4irB30FQo3F9JOIa g0k_8rYMrzUeE.UF4hRSkIpl74BbGfETGuaCIxEQAEBIV9Dto350cqYiEpOF_XcLScPfqnzN06a8 Kwr6JNUJBC7fHCjZqcmOd_gIk4cHU6hXkiECvfDrmiWVYWehrmpRVQz.1x3EeNCc0oFVEQSCvue_ hjJmjocfYMr2tW0AaLMzgd3Xj5CeExq1zkQeFWRBR0OxLth74aNc_db6zbedf5uRHsUCDKNHYuT. IQ0iTrlu7wDwLdNMPO90Z9gDKYRnYTHB8iqH_MFZEO X-Sonic-MF: X-Sonic-ID: f0659509-eb64-44d2-ba79-9fc7d3290136 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Tue, 22 Oct 2024 11:43:36 +0000 Original-Received: by hermes--production-sg3-5b7954b588-5j5q2 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 235efba82025cfa93ff1c25c5a08cb35; Tue, 22 Oct 2024 11:43:32 +0000 (UTC) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llmann=22'?= =?utf-8?Q?s?= message of "Tue, 22 Oct 2024 12:40:21 +0200") X-Mailer: WebService/1.1.22806 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.189.146; envelope-from=luangruo@yahoo.com; helo=sonic314-20.consmr.mail.ne1.yahoo.com X-Spam_score_int: -37 X-Spam_score: -3.8 X-Spam_bar: --- X-Spam_report: (-3.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1.697, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:324731 Archived-At: Gerd M=C3=B6llmann writes: > martin rudalics writes: > >> Building complains here as >> >> In file included from ../../src/term.c:30: >> ../../src/lisp.h: In function =E2=80=98Ftty_display_pixel_height=E2=80= =99: >> ../../src/lisp.h:406:24: warning: =E2=80=98height=E2=80=99 may be used u= ninitialized [-Wmaybe-uninitialized] >> 406 | XIL ((EMACS_INT) (((EMACS_UINT) (n) << INTTYPEBITS) + Lisp_I= nt0)) >> | ^ >> ../../src/term.c:4907:14: note: =E2=80=98height=E2=80=99 was declared he= re >> 4907 | int width, height; >> | ^~~~~~ >> ../../src/lisp.h: In function =E2=80=98Ftty_display_pixel_width=E2=80=99: >> ../../src/lisp.h:406:24: warning: =E2=80=98width=E2=80=99 may be used un= initialized [-Wmaybe-uninitialized] >> 406 | XIL ((EMACS_INT) (((EMACS_UINT) (n) << INTTYPEBITS) + Lisp_I= nt0)) >> | ^ >> ../../src/term.c:4896:7: note: =E2=80=98width=E2=80=99 was declared here >> 4896 | int width, height; >> | ^~~~~ > > That's code like this: > > { > int width, height; > tty_display_dimension (display, &width, &height); > return make_fixnum (height); > } > > So width and height are returned by the call to tty_display_dimension. > TBH, I can't make sense of the warning. FWIW, clang doesn't complain. > Don't know what's the usual way is to placate GCC here. What version is > that BTW? Insert UNINIT after the declaration of the variable affected by these warnings. E.g., int height UNINIT ...