GNU logs - #78160, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#78160: Emacs fail to build with GCC 15
Resent-From: MAN ONE <pRoMMMModE@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 30 Apr 2025 06:57:03 +0000
Resent-Message-ID: <handler.78160.B.174599619115966 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 78160
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 78160 <at> debbugs.gnu.org
X-Debbugs-Original-To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.174599619115966
          (code B ref -1); Wed, 30 Apr 2025 06:57:03 +0000
Received: (at submit) by debbugs.gnu.org; 30 Apr 2025 06:56:31 +0000
Received: from localhost ([127.0.0.1]:38959 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uA1Mr-00049M-Cf
	for submit <at> debbugs.gnu.org; Wed, 30 Apr 2025 02:56:31 -0400
Received: from lists.gnu.org ([2001:470:142::17]:57148)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <pRoMMMModE@HIDDEN>)
 id 1u9zIe-0001ls-0a
 for submit <at> debbugs.gnu.org; Wed, 30 Apr 2025 00:44:00 -0400
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 <pRoMMMModE@HIDDEN>)
 id 1u9zIX-0000en-NH
 for bug-gnu-emacs@HIDDEN; Wed, 30 Apr 2025 00:43:53 -0400
Received: from
 mail-australiasoutheastazolkn19010009.outbound.protection.outlook.com
 ([52.103.73.9] helo=MEUPR01CU001.outbound.protection.outlook.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <pRoMMMModE@HIDDEN>)
 id 1u9zIV-0001Hl-HY
 for bug-gnu-emacs@HIDDEN; Wed, 30 Apr 2025 00:43:53 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;
 b=xFNwgJwDbYPiFOqA9KLeqHRomc/M7w+J0IxVDOOIiUE25GDLIXZ9r6yRrpuY4+0uLnF08oLMIUuVSedyy4akL4efqVSR+VE2hCb3szUlVw3bkpNvdE+aeJlQHwZnufOBN/2XsjaZvYy3vgMUx1gR5Nn/bwrcs5zPwuE0R/wObx4jjXyOj2WUDdAG9lO1zxXo37dP5VfmqxRySGJ7o/gnwQAijfHbiPiXFbeXZsjACnK3H9oNQ5Nzvnw3Uu2aJDqKvzODcVKNVdKvlsrg6Os/u8DuXqhJRFov7yQyGWT3Iy999Q7TrrS4SjZ2cEjgws0bzocvBQx2pWvaqCpUXHwbkw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector10001;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=4AMBWoTzwn4iZPEwhdxGOugPmoU6kciUsmmvhP6F9AA=;
 b=gUPX39Oub6s9zFPdbtOBUtRQrKtmE0WFiJVjLCHVPtsOfQ9tZP1I+9zUFJIU6B/NRqKk2HR+FNwDHjqoqy+zSwCwqBghH8mLe0Ow9y69fvDCkKjPBwbqyGtAqsUdq3V2Ih4UkB4MpWT/tzzsCKycobVIuuJVKq1P0UOHpJY75Up7cpQTGU7AItMic2yDUVWcqYvUCzrInDlr4e4nTsdvLq8SM5evhkHjZtfdAP29PAcBYEtT/ZNqngqN7LUDGZ9cVxGhRWd73CqH8ABUTc7dJAKF/FxPgwJx6n9xOo8+lr/dpn61qB6ZOZ2XvyYcn/nj2MM4UluoxbVKH50bMKKppw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
 dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com;
 s=selector1;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=4AMBWoTzwn4iZPEwhdxGOugPmoU6kciUsmmvhP6F9AA=;
 b=SDw80K4BJ6QXItXuy4utKtfvNK3YTnPfOxcdD47pfSUz5RxvtItS1G1VZ+OpBD8kbw4Q11dwhpCPnc1J/7qRtdtkcgzZIKwoG+3qu357CNAiFD54KAg0uFuajyz2Ot7yVrUn/6XX6nlSz+yMfPhfVUXI2JshEDGB4z4ovd8BX19g0d031oQiekbe/eZS1EbvpQaTzPKG2TcXD0xdZnfgCTOYplguDXCH52eRSz8jgLofX/QV3r7zjCib+8udLjtA2G6alOc23fmWMf/PLLE7TRAI7kTf8X/8ZWB2EqwQxym5GOpF1aTktKhgvzcwOeMhGcQ38wzX6VelliN9Ulmftw==
Received: from SY7P300MB1034.AUSP300.PROD.OUTLOOK.COM (2603:10c6:10:28f::5) by
 SY0P300MB0279.AUSP300.PROD.OUTLOOK.COM (2603:10c6:10:251::5) with
 Microsoft
 SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.8699.20; Wed, 30 Apr 2025 04:38:42 +0000
Received: from SY7P300MB1034.AUSP300.PROD.OUTLOOK.COM
 ([fe80::a3bb:c9bd:2690:45a4]) by SY7P300MB1034.AUSP300.PROD.OUTLOOK.COM
 ([fe80::a3bb:c9bd:2690:45a4%4]) with mapi id 15.20.8699.019; Wed, 30 Apr 2025
 04:38:42 +0000
From: MAN ONE <pRoMMMModE@HIDDEN>
Thread-Topic: Emacs fail to build with GCC 15
Thread-Index: AQHbuYglEmPHLudwCUSzpkuqFuWDJw==
Date: Wed, 30 Apr 2025 04:38:42 +0000
Message-ID: <SY7P300MB103448970A2D5FF7EED93F6DDF832@HIDDEN>
Accept-Language: en-US, zh-CN
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
msip_labels: 
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SY7P300MB1034:EE_|SY0P300MB0279:EE_
x-ms-office365-filtering-correlation-id: 60c9cff3-eb68-46c3-4800-08dd87a0e290
x-microsoft-antispam: BCL:0;
 ARA:14566002|8062599003|461199028|15030799003|8060799006|19110799003|7092599003|15080799006|10035399004|440099028|3412199025|102099032;
x-microsoft-antispam-message-info: 9jCevqZH/zv5Mb6VFnIn4Wwi46asKALpDd7FFYDnX/Dr/qqgLS6IaV5oLAe/Z0LUDoS2XyQy2wtNzzLhi30A8Sa8QoOTVmFr7RA0GHDcfoEUmQhxrpZpsnrwsLQmL8uM/f9rc/UwLExuiFobMZ3fyP87CK4RFVerja9VUEJCZJVT3JBnb/C+npPsh0ULYq+c557aj3XnduqMh5SJxz4mpGPIx2q1vU/2ypqDZ7OPw1amxfaN0ZT7fAfB4osKDwVtJTmaQuYWDQ133u+/T5ip8tHsA/rtFNIJZuZ5DUvDPbExw/WOPCHkG3sxloSOyuV/XLpCDiiA/7ue47latO7Wtwk6GalkQDS1nqWxk+5DZdYVX7MkOIYkI4OHo1TfSURzvhF4RPrVyvvrlu1+cQKWm2LPfkT0l1U/x5K8ChNFFvl/MGx0yEPMho2gJbPNGpEApPdiAiyCsc3rtqyP29ZWD0Pcx3+h2s6BIATk5eTEr6/VlYL78X2nyT+N9oAXiFJns9pzGEnAlsrHMW5lcxMB5CkE8cKkQwVgIPufNW3PiuplmsS0SkJo3fbVfIkcwklZxfxn7gq3CO/q3jmugGzfdNvk/xO42UM25UUIPGH7lJOSI5a9QyeufJpgny6J8Jzh3LAo+VZMOPCCFQ0vOcuChhrgED0NxCKSr5QASomB3le47bqfFDtuMBYqI384o9k3twl6bS7R3Xh80MTBvX+y2BIVPzRxekUfRsHwdFu9kQ8KIlnkrwfXuR7CFlZHRra+G3kDzNRyWwopwNEAKYo64i+G+h3tKX6MBKRBjGwbIv3kQvLz5bHuHLqbJJyFlTeJFuIxnJxRaXXJreYeu1CWUWYHXaG7w17qFcp4EAhPkJepbDWq/i904MIChn+/e4Cs3tvIJCOaM+1WB/xxIPRELpdvTjeMqnbpCo/xjt+1wQtJQIGiKKuRkMrZV9mwMZFw7dSW/q0G5fPGH5ufaEeTWjhGvKRgPYSn6bcD5JytxWxACs/xTOtQv5ank0fiqYPloALFWaekA4eebAKSrE4wfUsPPWUQnBm4x+SHNaGK2bwgP4irfBax14U3P/NqzEkKIG2uvzcOis1JoC+inuh5bT8KGR+HnhVlnxeo/D1zqru3IVz5FnzdxwCXUnZqcS0Zdhw9MG4z4IYOanI3hpHmIo6bFdl7O91uoifFMBO/HJDje/HPivmNwZB10c3TkzXp
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: Ifj+AHCEodIMBSt0gFTDAuCi6udontjz51FNXwtNCgh1P0C9wCk30H/jznCKAdFl6YO2oAd1PvF6/yQ1eCIvYoPldudXCDCeTcWcrhemaoQDy+qFdd3QxsfsndD3oeXKbz6eyLWHZNKcj6vCyDK9fZR8pKry3XbK/1pdufpxmLr20TgTWco77H5gL4TlTXPLOWmfOKEsQu4mqVckn9AhwtVicAg9OM1OFxBR+DRnPEDiTwZuBcF+tFftjJo/n8EQ4nwxiDYmPN681OacbiefmKOaO1aSnr/WQvL6H9YBFYdWaVgzHm+xyTd3aPWyCGAOM7e6gzUPzGbrButfFbmFmnrUdMil//WBcCF41//09fPFB7pf4tdzVVsZJ+pY3POylB7LAP7XCxB+My41gNkjCQZj46cKz30xoLZbQVuB5UXjm8jpD+MFgf46lDDINsAb+LIgXxvSIl9IRIRUDvUtqpHpqI7Powvj5uJjz4v77kezR5tVc4ZIxDngch2IeMpfz4Q945IaoCiFYJn+u+svQBuGdM2F1K843zMi4FC121olJTLh8Ubuhx8Og6k4cUxEXGfHylyh5MiZ04LX25LM2b5jtonMEVb8wP839a60aBer+hU84kVkzspYAxSIdiUqf2DSI0zi+WK1b9Q+y43xvYy3KHZsagw7XrYQBziKh5Icx2sZsRYJTSGwdx5/1ad4idXvL3aAqTHVm4C51K7CJbLMHOOBuXAYJD2tCR4Pr3AwqbQEwxaq7pnv+uQ02gGHqs8TUZWnINrxiNLdxk1AR4iOp8NylTnf17Gpacs70SNrKndFgD+TYNcSEFMOvHcNFBIrI04IvZa5QRx4FGY2ynnXg+5EofYlbdJvZ07tlbBPuvERvVCHev5pFYQQgd3m+zflUliLdnqP1JMTQTI2gqoR84+q7jTo5fJkqhwCWvVFSNxCh+msEIS5VeeewdaIdlmIUv1wgTO5PLQwyobHQFqHE8bQr4JVxIseDc12HUy/8EztHQ5LwcLevhl7IS/OZ0mBWW1J+l+vMW0mwUxZYra6RoEmjl536UwRt3RtY6gBqfERvGIGks81rCc0Y1FOhl6AIF3FDYWBYDdhj/QdXgi2G+gt0irbkJvaDwtN6g48iwmejFrxJLBY5V7HJQM1yb0FlQhK1DdYg+VZ79uNA3QAT8fKsqC16Y2kNruw15saeuOAMQAh4KeNEn0hG8dhIH5nId0vNp1RQMo01SYTflPqLJsXZyvv5BQMyYIGZL4=
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SY7P300MB1034.AUSP300.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: 60c9cff3-eb68-46c3-4800-08dd87a0e290
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Apr 2025 04:38:42.1840 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SY0P300MB0279
Received-SPF: pass client-ip=52.103.73.9; envelope-from=pRoMMMModE@HIDDEN;
 helo=MEUPR01CU001.outbound.protection.outlook.com
X-Spam_score_int: -10
X-Spam_score: -1.1
X-Spam_bar: -
X-Spam_report: (-1.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, FREEMAIL_FROM=0.001,
 HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=1, RCVD_IN_DNSWL_NONE=-0.0001,
 RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Earlier this week Msys2 upgraded GCC to version 15.1.0, which
    lead to this build error: emacsclient.c:1718:9: warning: no previous declaration
    for 'set_fg' [-Wmissing-variable-de clarations] =?UTF-8?Q?=A01718?= | FARPROC set_fg; =?UTF-8?Q?=A0/*?=
    Pointer to AllowSetForegroundWindow. =?UTF-8?Q?=A0*/_?= =?UTF-8?Q?=A0_?= =?UTF-8?Q?=A0_?= =?UTF-8?Q?=A0?= | =?UTF-8?Q?=A0_?= =?UTF-8?Q?=A0_?= =?UTF-8?Q?=A0_?= =?UTF-8?Q?=A0?= ^~~~~~ emacs [...]
    
 
 Content analysis details:   (2.0 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  1.0 HK_RANDOM_FROM         From username looks random
  0.0 HK_RANDOM_ENVFROM      Envelope sender username looks random
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
  1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
                             provider (prommmmode[at]outlook.com)
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [2001:470:142:0:0:0:0:17 listed in]
                             [list.dnswl.org]
  0.0 SPOOFED_FREEMAIL       No description available.
X-Mailman-Approved-At: Wed, 30 Apr 2025 02:56:24 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

Earlier this week Msys2 upgraded GCC to version 15.1.0, which lead to this =
build error:=0A=
=0A=
=0A=
emacsclient.c:1718:9: warning: no previous declaration for 'set_fg' [-Wmiss=
ing-variable-de=0A=
clarations]=0A=
=A01718 | FARPROC set_fg; =A0/* Pointer to AllowSetForegroundWindow. =A0*/=
=0A=
=A0 =A0 =A0 | =A0 =A0 =A0 =A0 ^~~~~~=0A=
emacsclient.c:1719:9: warning: no previous declaration for 'get_wc' [-Wmiss=
ing-variable-de=0A=
clarations]=0A=
=A01719 | FARPROC get_wc; =A0/* Pointer to RealGetWindowClassA. =A0*/=0A=
=A0 =A0 =A0 | =A0 =A0 =A0 =A0 ^~~~~~=0A=
emacsclient.c: In function 'w32_find_emacs_process':=0A=
emacsclient.c:1759:9: error: too many arguments to function 'get_wc'; expec=
ted 0, have 3=0A=
=A01759 | =A0 if (! get_wc (hWnd, class, sizeof (class))=0A=
=A0 =A0 =A0 | =A0 =A0 =A0 =A0 ^~~~~~ =A0~~~~=0A=
emacsclient.c:1770:3: error: too many arguments to function 'set_fg'; expec=
ted 0, have 1=0A=
=A01770 | =A0 set_fg (emacs_pid);=0A=
=A0 =A0 =A0 | =A0 ^~~~~~ =A0~~~~~~~~~=0A=
emacsclient.c:1718:9: warning: no previous declaration for 'set_fg' [-Wmiss=
ing-variable-de=0A=
clarations]=0A=
=A01718 | FARPROC set_fg; =A0/* Pointer to AllowSetForegroundWindow. =A0*/=
=0A=
=A0 =A0 =A0 | =A0 =A0 =A0 =A0 ^~~~~~=0A=
emacsclient.c:1719:9: warning: no previous declaration for 'get_wc' [-Wmiss=
ing-variable-de=0A=
clarations]=0A=
=A01719 | FARPROC get_wc; =A0/* Pointer to RealGetWindowClassA. =A0*/=0A=
=A0 =A0 =A0 | =A0 =A0 =A0 =A0 ^~~~~~=0A=
emacsclient.c: In function 'w32_find_emacs_process':=0A=
emacsclient.c:1759:9: error: too many arguments to function 'get_wc'; expec=
ted 0, have 3=0A=
=A01759 | =A0 if (! get_wc (hWnd, class, sizeof (class))=0A=
=A0 =A0 =A0 | =A0 =A0 =A0 =A0 ^~~~~~ =A0~~~~=0A=
emacsclient.c:1770:3: error: too many arguments to function 'set_fg'; expec=
ted 0, have 1=0A=
=A01770 | =A0 set_fg (emacs_pid);=0A=
=A0 =A0 =A0 | =A0 ^~~~~~ =A0~~~~~~~~~=0A=
make[2]: *** [Makefile:446: emacsclientw.exe] Error 1=0A=
make[2]: *** Waiting for unfinished jobs....=0A=
make[2]: *** [Makefile:439: emacsclient.exe] Error 1=0A=
make[2]: Leaving directory '/e/home/repo/emacs/lib-src'=0A=
make[1]: *** [Makefile:529: lib-src] Error 2=0A=
make[1]: *** Waiting for unfinished jobs....=0A=
=0A=
=0A=
I think the cause is GCC 15 now use C23 by default[1], and appending ` -std=
=3Dgnu17 ` compiler flag does solve the problem.=0A=
=0A=
[1]https://gcc.gnu.org/gcc-15/porting_to.html#c23=




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: MAN ONE <pRoMMMModE@HIDDEN>
Subject: bug#78160: Acknowledgement (Emacs fail to build with GCC 15)
Message-ID: <handler.78160.B.174599619115966.ack <at> debbugs.gnu.org>
References: <SY7P300MB103448970A2D5FF7EED93F6DDF832@HIDDEN>
X-Gnu-PR-Message: ack 78160
X-Gnu-PR-Package: emacs
Reply-To: 78160 <at> debbugs.gnu.org
Date: Wed, 30 Apr 2025 06:57:03 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 78160 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
78160: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D78160
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#78160: Emacs fail to build with GCC 15
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 30 Apr 2025 08:17:02 +0000
Resent-Message-ID: <handler.78160.B78160.174600097332292 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 78160
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: MAN ONE <pRoMMMModE@HIDDEN>
Cc: 78160 <at> debbugs.gnu.org
Received: via spool by 78160-submit <at> debbugs.gnu.org id=B78160.174600097332292
          (code B ref 78160); Wed, 30 Apr 2025 08:17:02 +0000
Received: (at 78160) by debbugs.gnu.org; 30 Apr 2025 08:16:13 +0000
Received: from localhost ([127.0.0.1]:39333 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uA2c0-0008Om-DM
	for submit <at> debbugs.gnu.org; Wed, 30 Apr 2025 04:16:12 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:60706)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uA2bx-0008OU-L5
 for 78160 <at> debbugs.gnu.org; Wed, 30 Apr 2025 04:16:10 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1uA2br-0001vc-Vw; Wed, 30 Apr 2025 04:16:04 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=ytJ/7+C0MLj7n8UhVZLD1yz7Avk+LDvejPpeFnUuMpQ=; b=DWXcDkoHUe5NEsuC5kwm
 iWbRXAReX6r7PN1WPMId0n1nSC4IzdYvl6oEvyHjjmTxMVkuUBwSxdX/GMurzWLSBXq2fWe/wk/KG
 rYUcbzq86kUj0IuxV6onSsyZVDO4Gmj1hbyiJJWkVEIm5fSkGCYpDqh5HYHq9LM1WuqT0s6KB+3lX
 MgJJD+TchkkEv7oCYVRuw/TPvYlOGbjcQMFgXMhgHwuCTck8mEg4igs4U4Ubhk5R+GO5ZKzwalthl
 1A7TgHaMoGTfAoETAI4UqeaO3tphBhYtEqFHQrbXbmsPu53RIUYOZzxt6yl5MzZfHW+24fTrt5aSP
 hN5CJWibSuZIQQ==;
Date: Wed, 30 Apr 2025 11:15:26 +0300
Message-Id: <86o6wenjz5.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <SY7P300MB103448970A2D5FF7EED93F6DDF832@HIDDEN>
 (message from MAN ONE on Wed, 30 Apr 2025 04:38:42 +0000)
References: <SY7P300MB103448970A2D5FF7EED93F6DDF832@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: MAN ONE <pRoMMMModE@HIDDEN>
> Date: Wed, 30 Apr 2025 04:38:42 +0000
> msip_labels: 
> 
> Earlier this week Msys2 upgraded GCC to version 15.1.0, which lead to this build error:
> 
> 
> emacsclient.c:1718:9: warning: no previous declaration for 'set_fg' [-Wmissing-variable-de
> clarations]
>  1718 | FARPROC set_fg;  /* Pointer to AllowSetForegroundWindow.  */
>       |         ^~~~~~
> emacsclient.c:1719:9: warning: no previous declaration for 'get_wc' [-Wmissing-variable-de
> clarations]
>  1719 | FARPROC get_wc;  /* Pointer to RealGetWindowClassA.  */
>       |         ^~~~~~
> emacsclient.c: In function 'w32_find_emacs_process':
> emacsclient.c:1759:9: error: too many arguments to function 'get_wc'; expected 0, have 3
>  1759 |   if (! get_wc (hWnd, class, sizeof (class))
>       |         ^~~~~~  ~~~~
> emacsclient.c:1770:3: error: too many arguments to function 'set_fg'; expected 0, have 1
>  1770 |   set_fg (emacs_pid);
>       |   ^~~~~~  ~~~~~~~~~
> emacsclient.c:1718:9: warning: no previous declaration for 'set_fg' [-Wmissing-variable-de
> clarations]
>  1718 | FARPROC set_fg;  /* Pointer to AllowSetForegroundWindow.  */
>       |         ^~~~~~
> emacsclient.c:1719:9: warning: no previous declaration for 'get_wc' [-Wmissing-variable-de
> clarations]
>  1719 | FARPROC get_wc;  /* Pointer to RealGetWindowClassA.  */
>       |         ^~~~~~
> emacsclient.c: In function 'w32_find_emacs_process':
> emacsclient.c:1759:9: error: too many arguments to function 'get_wc'; expected 0, have 3
>  1759 |   if (! get_wc (hWnd, class, sizeof (class))
>       |         ^~~~~~  ~~~~
> emacsclient.c:1770:3: error: too many arguments to function 'set_fg'; expected 0, have 1
>  1770 |   set_fg (emacs_pid);
>       |   ^~~~~~  ~~~~~~~~~
> make[2]: *** [Makefile:446: emacsclientw.exe] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[2]: *** [Makefile:439: emacsclient.exe] Error 1
> make[2]: Leaving directory '/e/home/repo/emacs/lib-src'
> make[1]: *** [Makefile:529: lib-src] Error 2
> make[1]: *** Waiting for unfinished jobs....
> 
> 
> I think the cause is GCC 15 now use C23 by default[1], and appending ` -std=gnu17 ` compiler flag does solve the problem.

Thanks for the report.  Does the patch below solve these problems?

diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 2cf90f4..d783af9 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -1715,8 +1715,12 @@ set_socket (bool no_exit_if_error)
 }
 
 #ifdef HAVE_NTGUI
-FARPROC set_fg;  /* Pointer to AllowSetForegroundWindow.  */
-FARPROC get_wc;  /* Pointer to RealGetWindowClassA.  */
+typedef BOOL (WINAPI *AllowSetForegroundWindow_proc) (DWORD);
+/* Pointer to AllowSetForegroundWindow.  */
+static AllowSetForegroundWindow_proc set_fg;
+typedef UINT (WINAPI *RealGetWindowClassA_proc) (HWND, LPSTR, UINT);
+/* Pointer to RealGetWindowClassA.  */
+static RealGetWindowClassA_proc get_wc;
 
 void w32_set_user_model_id (void);
 
@@ -1794,8 +1798,8 @@ w32_give_focus (void)
      emacsclient can allow Emacs to grab the focus by calling the function
      AllowSetForegroundWindow.  Unfortunately, older Windows (W95, W98 and
      NT) lack this function, so we have to check its availability.  */
-  if ((set_fg = GetProcAddress (user32, "AllowSetForegroundWindow"))
-      && (get_wc = GetProcAddress (user32, "RealGetWindowClassA")))
+  if ((set_fg = (AllowSetForegroundWindow_proc) GetProcAddress (user32, "AllowSetForegroundWindow"))
+      && (get_wc = (RealGetWindowClassA_proc) GetProcAddress (user32, "RealGetWindowClassA")))
     EnumWindows (w32_find_emacs_process, (LPARAM) 0);
 }
 #endif /* HAVE_NTGUI */




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#78160: Emacs fail to build with GCC 15
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 30 Apr 2025 10:07:02 +0000
Resent-Message-ID: <handler.78160.B78160.17460075691929 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 78160
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: MAN ONE <pRoMMMModE@HIDDEN>
Cc: 78160 <at> debbugs.gnu.org
Received: via spool by 78160-submit <at> debbugs.gnu.org id=B78160.17460075691929
          (code B ref 78160); Wed, 30 Apr 2025 10:07:02 +0000
Received: (at 78160) by debbugs.gnu.org; 30 Apr 2025 10:06:09 +0000
Received: from localhost ([127.0.0.1]:39932 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uA4KO-0000V2-Ox
	for submit <at> debbugs.gnu.org; Wed, 30 Apr 2025 06:06:09 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39782)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uA4KL-0000UC-6e
 for 78160 <at> debbugs.gnu.org; Wed, 30 Apr 2025 06:06:06 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1uA4KF-0007cv-AM; Wed, 30 Apr 2025 06:05:59 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=eE95OZsvVkany2Q0KVF+vM0WAfHGsnJnloJoFXbg7hM=; b=XVnsD7CEfc5c
 aMSkFD2mZYEDiBehUnB+NXud/yYiyzEzuL1085tOi5JG1FpgaupI0DYUt2stGMKXSid0HMNwIQgDM
 HZhDNLDBjq0InSQWagLT+/pKbl2vJFNzC47tgh9YuqKxWs04bXYClFlJHbMJDlsvcIrBw6baui+wk
 oM/VmWfW/DErBXxzldnYkW9rhzqWg6ySs/bzZmiXtecT9IiwcxBYvxSzoPQ7Ha8p8PEb8r2taPBBS
 N9Lx3Vqo4CC69nZ85apre0j21Piwkxz6XcZ2LeY8JRJMwkmmURP0K78npMm+s57Kop6pZOkXSf/f7
 mbgR4Vc27UjzN0hXyyuRmg==;
Date: Wed, 30 Apr 2025 13:05:51 +0300
Message-Id: <86frhqnev4.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <SY7P300MB10349362AFD0A5F0F4311884DF832@HIDDEN>
 (message from MAN ONE on Wed, 30 Apr 2025 09:23:51 +0000)
References: <SY7P300MB103448970A2D5FF7EED93F6DDF832@HIDDEN>
 <86o6wenjz5.fsf@HIDDEN> 
 <SY7P300MB10349362AFD0A5F0F4311884DF832@HIDDEN>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: MAN ONE <pRoMMMModE@HIDDEN>
> CC: "78160 <at> debbugs.gnu.org" <78160 <at> debbugs.gnu.org>
> Date: Wed, 30 Apr 2025 09:23:51 +0000
> msip_labels:
> 
> Thanks, the patch solved the compilation error, and the compiled binary seems working fine.
> However GCC also output some warnings ( actually GCC output a LOT of warnings, I just gonna paste warnings that only relate to the patch.)
> 
> make[2]: Entering directory '/e/home/repo/emacs/lib-src'
>   CC       ntlib.o
>   CCLD     etags.exe
>   CCLD     emacsclient.exe
> emacsclient.c: In function 'w32_give_focus':
> emacsclient.c:1801:17: warning: cast between incompatible function types from 'FARPROC' {a
> ka 'long long int (*)(void)'} to 'BOOL (*)(DWORD)' {aka 'int (*)(long unsigned int)'} [-Wc
> ast-function-type]
>  1801 |   if ((set_fg = (AllowSetForegroundWindow_proc) GetProcAddress (user32, "AllowSetF
> oregroundWindow"))
>       |                 ^
> emacsclient.c:1802:20: warning: cast between incompatible function types from 'FARPROC' {a
> ka 'long long int (*)(void)'} to 'UINT (*)(struct HWND__ *, CHAR *, UINT)' {aka 'unsigned
> int (*)(struct HWND__ *, char *, unsigned int)'} [-Wcast-function-type]
>  1802 |       && (get_wc = (RealGetWindowClassA_proc) GetProcAddress (user32, "RealGetWind
> owClassA")))
>       |                    ^
>   RC       emacsclient.res
>   CCLD     emacsclientw.exe
> emacsclient.c: In function 'w32_give_focus':
> emacsclient.c:1801:17: warning: cast between incompatible function types from 'FARPROC' {a
> ka 'long long int (*)(void)'} to 'BOOL (*)(DWORD)' {aka 'int (*)(long unsigned int)'} [-Wc
> ast-function-type]
>  1801 |   if ((set_fg = (AllowSetForegroundWindow_proc) GetProcAddress (user32, "AllowSetF
> oregroundWindow"))
>       |                 ^
> emacsclient.c:1802:20: warning: cast between incompatible function types from 'FARPROC' {a
> ka 'long long int (*)(void)'} to 'UINT (*)(struct HWND__ *, CHAR *, UINT)' {aka 'unsigned
> int (*)(struct HWND__ *, char *, unsigned int)'} [-Wcast-function-type]
>  1802 |       && (get_wc = (RealGetWindowClassA_proc) GetProcAddress (user32, "RealGetWind
> owClassA")))
>       |                    ^

Please try the below patch instead of the previous one:

diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 2cf90f4..ddfe19f 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -1715,8 +1715,13 @@ set_socket (bool no_exit_if_error)
 }
 
 #ifdef HAVE_NTGUI
-FARPROC set_fg;  /* Pointer to AllowSetForegroundWindow.  */
-FARPROC get_wc;  /* Pointer to RealGetWindowClassA.  */
+typedef void (* VOIDFNPTR) (void);
+typedef BOOL (WINAPI *AllowSetForegroundWindow_proc) (DWORD);
+/* Pointer to AllowSetForegroundWindow.  */
+static AllowSetForegroundWindow_proc set_fg;
+typedef UINT (WINAPI *RealGetWindowClassA_proc) (HWND, LPSTR, UINT);
+/* Pointer to RealGetWindowClassA.  */
+static RealGetWindowClassA_proc get_wc;
 
 void w32_set_user_model_id (void);
 
@@ -1794,8 +1799,8 @@ w32_give_focus (void)
      emacsclient can allow Emacs to grab the focus by calling the function
      AllowSetForegroundWindow.  Unfortunately, older Windows (W95, W98 and
      NT) lack this function, so we have to check its availability.  */
-  if ((set_fg = GetProcAddress (user32, "AllowSetForegroundWindow"))
-      && (get_wc = GetProcAddress (user32, "RealGetWindowClassA")))
+  if ((set_fg = (AllowSetForegroundWindow_proc) (VOIDFNPTR) GetProcAddress (user32, "AllowSetForegroundWindow"))
+      && (get_wc = (RealGetWindowClassA_proc) (VOIDFNPTR) GetProcAddress (user32, "RealGetWindowClassA")))
     EnumWindows (w32_find_emacs_process, (LPARAM) 0);
 }
 #endif /* HAVE_NTGUI */




Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Eli Zaretskii <eliz@HIDDEN>
Subject: bug#78160: closed (Emacs fail to build with GCC 15)
CC: tracker <at> debbugs.gnu.org
Message-ID: <handler.78160.D78160.174601186128429.ackdone <at> debbugs.gnu.org>
References: <86ecx9oq48.fsf@HIDDEN>
 <SY7P300MB103448970A2D5FF7EED93F6DDF832@HIDDEN>
X-Gnu-PR-Message: closed 78160
X-Gnu-PR-Package: emacs
Date: Wed, 30 Apr 2025 11:18:01 +0000
Content-Type: multipart/mixed; boundary="----------=_1746011881-28469-0"

This is a multi-part message in MIME format...

------------=_1746011881-28469-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8

Your message dated Wed, 30 Apr 2025 14:17:27 +0300
with message-id <86ecx9oq48.fsf@HIDDEN>
and subject line Re: bug#78160: Emacs fail to build with GCC 15
has caused the debbugs.gnu.org bug report #78160,
regarding Emacs fail to build with GCC 15
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@HIDDEN)


--=20
78160: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D78160
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

------------=_1746011881-28469-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 30 Apr 2025 06:56:31 +0000
Received: from localhost ([127.0.0.1]:38959 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uA1Mr-00049M-Cf
	for submit <at> debbugs.gnu.org; Wed, 30 Apr 2025 02:56:31 -0400
Received: from lists.gnu.org ([2001:470:142::17]:57148)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <pRoMMMModE@HIDDEN>)
 id 1u9zIe-0001ls-0a
 for submit <at> debbugs.gnu.org; Wed, 30 Apr 2025 00:44:00 -0400
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 <pRoMMMModE@HIDDEN>)
 id 1u9zIX-0000en-NH
 for bug-gnu-emacs@HIDDEN; Wed, 30 Apr 2025 00:43:53 -0400
Received: from
 mail-australiasoutheastazolkn19010009.outbound.protection.outlook.com
 ([52.103.73.9] helo=MEUPR01CU001.outbound.protection.outlook.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <pRoMMMModE@HIDDEN>)
 id 1u9zIV-0001Hl-HY
 for bug-gnu-emacs@HIDDEN; Wed, 30 Apr 2025 00:43:53 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;
 b=xFNwgJwDbYPiFOqA9KLeqHRomc/M7w+J0IxVDOOIiUE25GDLIXZ9r6yRrpuY4+0uLnF08oLMIUuVSedyy4akL4efqVSR+VE2hCb3szUlVw3bkpNvdE+aeJlQHwZnufOBN/2XsjaZvYy3vgMUx1gR5Nn/bwrcs5zPwuE0R/wObx4jjXyOj2WUDdAG9lO1zxXo37dP5VfmqxRySGJ7o/gnwQAijfHbiPiXFbeXZsjACnK3H9oNQ5Nzvnw3Uu2aJDqKvzODcVKNVdKvlsrg6Os/u8DuXqhJRFov7yQyGWT3Iy999Q7TrrS4SjZ2cEjgws0bzocvBQx2pWvaqCpUXHwbkw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector10001;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=4AMBWoTzwn4iZPEwhdxGOugPmoU6kciUsmmvhP6F9AA=;
 b=gUPX39Oub6s9zFPdbtOBUtRQrKtmE0WFiJVjLCHVPtsOfQ9tZP1I+9zUFJIU6B/NRqKk2HR+FNwDHjqoqy+zSwCwqBghH8mLe0Ow9y69fvDCkKjPBwbqyGtAqsUdq3V2Ih4UkB4MpWT/tzzsCKycobVIuuJVKq1P0UOHpJY75Up7cpQTGU7AItMic2yDUVWcqYvUCzrInDlr4e4nTsdvLq8SM5evhkHjZtfdAP29PAcBYEtT/ZNqngqN7LUDGZ9cVxGhRWd73CqH8ABUTc7dJAKF/FxPgwJx6n9xOo8+lr/dpn61qB6ZOZ2XvyYcn/nj2MM4UluoxbVKH50bMKKppw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
 dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com;
 s=selector1;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=4AMBWoTzwn4iZPEwhdxGOugPmoU6kciUsmmvhP6F9AA=;
 b=SDw80K4BJ6QXItXuy4utKtfvNK3YTnPfOxcdD47pfSUz5RxvtItS1G1VZ+OpBD8kbw4Q11dwhpCPnc1J/7qRtdtkcgzZIKwoG+3qu357CNAiFD54KAg0uFuajyz2Ot7yVrUn/6XX6nlSz+yMfPhfVUXI2JshEDGB4z4ovd8BX19g0d031oQiekbe/eZS1EbvpQaTzPKG2TcXD0xdZnfgCTOYplguDXCH52eRSz8jgLofX/QV3r7zjCib+8udLjtA2G6alOc23fmWMf/PLLE7TRAI7kTf8X/8ZWB2EqwQxym5GOpF1aTktKhgvzcwOeMhGcQ38wzX6VelliN9Ulmftw==
Received: from SY7P300MB1034.AUSP300.PROD.OUTLOOK.COM (2603:10c6:10:28f::5) by
 SY0P300MB0279.AUSP300.PROD.OUTLOOK.COM (2603:10c6:10:251::5) with
 Microsoft
 SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.8699.20; Wed, 30 Apr 2025 04:38:42 +0000
Received: from SY7P300MB1034.AUSP300.PROD.OUTLOOK.COM
 ([fe80::a3bb:c9bd:2690:45a4]) by SY7P300MB1034.AUSP300.PROD.OUTLOOK.COM
 ([fe80::a3bb:c9bd:2690:45a4%4]) with mapi id 15.20.8699.019; Wed, 30 Apr 2025
 04:38:42 +0000
From: MAN ONE <pRoMMMModE@HIDDEN>
To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN>
Subject: Emacs fail to build with GCC 15
Thread-Topic: Emacs fail to build with GCC 15
Thread-Index: AQHbuYglEmPHLudwCUSzpkuqFuWDJw==
Date: Wed, 30 Apr 2025 04:38:42 +0000
Message-ID: <SY7P300MB103448970A2D5FF7EED93F6DDF832@HIDDEN>
Accept-Language: en-US, zh-CN
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
msip_labels: 
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SY7P300MB1034:EE_|SY0P300MB0279:EE_
x-ms-office365-filtering-correlation-id: 60c9cff3-eb68-46c3-4800-08dd87a0e290
x-microsoft-antispam: BCL:0;
 ARA:14566002|8062599003|461199028|15030799003|8060799006|19110799003|7092599003|15080799006|10035399004|440099028|3412199025|102099032;
x-microsoft-antispam-message-info: =?iso-8859-1?Q?9jCevqZH/zv5Mb6VFnIn4Wwi46asKALpDd7FFYDnX/Dr/qqgLS6IaV5oLA?=
 =?iso-8859-1?Q?e/Z0LUDoS2XyQy2wtNzzLhi30A8Sa8QoOTVmFr7RA0GHDcfoEUmQhxrpZp?=
 =?iso-8859-1?Q?snrwsLQmL8uM/f9rc/UwLExuiFobMZ3fyP87CK4RFVerja9VUEJCZJVT3J?=
 =?iso-8859-1?Q?Bnb/C+npPsh0ULYq+c557aj3XnduqMh5SJxz4mpGPIx2q1vU/2ypqDZ7OP?=
 =?iso-8859-1?Q?w1amxfaN0ZT7fAfB4osKDwVtJTmaQuYWDQ133u+/T5ip8tHsA/rtFNIJZu?=
 =?iso-8859-1?Q?Z5DUvDPbExw/WOPCHkG3sxloSOyuV/XLpCDiiA/7ue47latO7Wtwk6Galk?=
 =?iso-8859-1?Q?QDS1nqWxk+5DZdYVX7MkOIYkI4OHo1TfSURzvhF4RPrVyvvrlu1+cQKWm2?=
 =?iso-8859-1?Q?LPfkT0l1U/x5K8ChNFFvl/MGx0yEPMho2gJbPNGpEApPdiAiyCsc3rtqyP?=
 =?iso-8859-1?Q?29ZWD0Pcx3+h2s6BIATk5eTEr6/VlYL78X2nyT+N9oAXiFJns9pzGEnAls?=
 =?iso-8859-1?Q?rHMW5lcxMB5CkE8cKkQwVgIPufNW3PiuplmsS0SkJo3fbVfIkcwklZxfxn?=
 =?iso-8859-1?Q?7gq3CO/q3jmugGzfdNvk/xO42UM25UUIPGH7lJOSI5a9QyeufJpgny6J8J?=
 =?iso-8859-1?Q?zh3LAo+VZMOPCCFQ0vOcuChhrgED0NxCKSr5QASomB3le47bqfFDtuMBYq?=
 =?iso-8859-1?Q?I384o9k3twl6bS7R3Xh80MTBvX+y2BIVPzRxekUfRsHwdFu9kQ8KIlnkrw?=
 =?iso-8859-1?Q?fXuR7CFlZHRra+G3kDzNRyWwopwNEAKYo64i+G+h3tKX6MBKRBjGwbIv3k?=
 =?iso-8859-1?Q?QvLz5bHuHLqbJJyFlTeJFuIxnJxRaXXJreYeu1CWUWYHXaG7w17qFcp4EA?=
 =?iso-8859-1?Q?hPkJepbDWq/i904MIChn+/e4Cs3tvIJCOaM+1WB/xxIPRELpdvTjeMqnbp?=
 =?iso-8859-1?Q?Co/xjt+1wQtJQIGiKKuRkMrZV9mwMZFw7dSW/q0G5fPGH5ufaEeTWjhGvK?=
 =?iso-8859-1?Q?RgPYSn6bcD5JytxWxACs/xTOtQv5ank0fiqYPloALFWaekA4eebAKSrE4w?=
 =?iso-8859-1?Q?fUsPPWUQnBm4x+SHNaGK2bwgP4irfBax14U3P/NqzEkKIG2uvzcOis1JoC?=
 =?iso-8859-1?Q?+inuh5bT8KGR+HnhVlnxeo/D1zqru3IVz5FnzdxwCXUnZqcS0Zdhw9MG4z?=
 =?iso-8859-1?Q?4IYOanI3hpHmIo6bFdl7O91uoifFMBO/HJDje/HPivmNwZB10c3TkzXp?=
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?Ifj+AHCEodIMBSt0gFTDAuCi6udontjz51FNXwtNCgh1P0C9wCk30H/jzn?=
 =?iso-8859-1?Q?CKAdFl6YO2oAd1PvF6/yQ1eCIvYoPldudXCDCeTcWcrhemaoQDy+qFdd3Q?=
 =?iso-8859-1?Q?xsfsndD3oeXKbz6eyLWHZNKcj6vCyDK9fZR8pKry3XbK/1pdufpxmLr20T?=
 =?iso-8859-1?Q?gTWco77H5gL4TlTXPLOWmfOKEsQu4mqVckn9AhwtVicAg9OM1OFxBR+DRn?=
 =?iso-8859-1?Q?PEDiTwZuBcF+tFftjJo/n8EQ4nwxiDYmPN681OacbiefmKOaO1aSnr/WQv?=
 =?iso-8859-1?Q?L6H9YBFYdWaVgzHm+xyTd3aPWyCGAOM7e6gzUPzGbrButfFbmFmnrUdMil?=
 =?iso-8859-1?Q?//WBcCF41//09fPFB7pf4tdzVVsZJ+pY3POylB7LAP7XCxB+My41gNkjCQ?=
 =?iso-8859-1?Q?Zj46cKz30xoLZbQVuB5UXjm8jpD+MFgf46lDDINsAb+LIgXxvSIl9IRIRU?=
 =?iso-8859-1?Q?DvUtqpHpqI7Powvj5uJjz4v77kezR5tVc4ZIxDngch2IeMpfz4Q945IaoC?=
 =?iso-8859-1?Q?iFYJn+u+svQBuGdM2F1K843zMi4FC121olJTLh8Ubuhx8Og6k4cUxEXGfH?=
 =?iso-8859-1?Q?ylyh5MiZ04LX25LM2b5jtonMEVb8wP839a60aBer+hU84kVkzspYAxSIdi?=
 =?iso-8859-1?Q?Uqf2DSI0zi+WK1b9Q+y43xvYy3KHZsagw7XrYQBziKh5Icx2sZsRYJTSGw?=
 =?iso-8859-1?Q?dx5/1ad4idXvL3aAqTHVm4C51K7CJbLMHOOBuXAYJD2tCR4Pr3AwqbQEwx?=
 =?iso-8859-1?Q?aq7pnv+uQ02gGHqs8TUZWnINrxiNLdxk1AR4iOp8NylTnf17Gpacs70SNr?=
 =?iso-8859-1?Q?KndFgD+TYNcSEFMOvHcNFBIrI04IvZa5QRx4FGY2ynnXg+5EofYlbdJvZ0?=
 =?iso-8859-1?Q?7tlbBPuvERvVCHev5pFYQQgd3m+zflUliLdnqP1JMTQTI2gqoR84+q7jTo?=
 =?iso-8859-1?Q?5fJkqhwCWvVFSNxCh+msEIS5VeeewdaIdlmIUv1wgTO5PLQwyobHQFqHE8?=
 =?iso-8859-1?Q?bQr4JVxIseDc12HUy/8EztHQ5LwcLevhl7IS/OZ0mBWW1J+l+vMW0mwUxZ?=
 =?iso-8859-1?Q?Yra6RoEmjl536UwRt3RtY6gBqfERvGIGks81rCc0Y1FOhl6AIF3FDYWBYD?=
 =?iso-8859-1?Q?dhj/QdXgi2G+gt0irbkJvaDwtN6g48iwmejFrxJLBY5V7HJQM1yb0FlQhK?=
 =?iso-8859-1?Q?1DdYg+VZ79uNA3QAT8fKsqC16Y2kNruw15saeuOAMQAh4KeNEn0hG8dhIH?=
 =?iso-8859-1?Q?5nId0vNp1RQMo01SYTflPqLJsXZyvv5BQMyYIGZL4=3D?=
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SY7P300MB1034.AUSP300.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: 60c9cff3-eb68-46c3-4800-08dd87a0e290
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Apr 2025 04:38:42.1840 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SY0P300MB0279
Received-SPF: pass client-ip=52.103.73.9; envelope-from=pRoMMMModE@HIDDEN;
 helo=MEUPR01CU001.outbound.protection.outlook.com
X-Spam_score_int: -10
X-Spam_score: -1.1
X-Spam_bar: -
X-Spam_report: (-1.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, FREEMAIL_FROM=0.001,
 HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=1, RCVD_IN_DNSWL_NONE=-0.0001,
 RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Earlier this week Msys2 upgraded GCC to version 15.1.0, which
    lead to this build error: emacsclient.c:1718:9: warning: no previous declaration
    for 'set_fg' [-Wmissing-variable-de clarations]  1718 | FARPROC set_fg;  /*
    Pointer to AllowSetForegroundWindow.  */       |         ^~~~~~ emacs [...]
    
 
 Content analysis details:   (2.0 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  1.0 HK_RANDOM_FROM         From username looks random
  0.0 HK_RANDOM_ENVFROM      Envelope sender username looks random
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
  1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
                             provider (prommmmode[at]outlook.com)
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [2001:470:142:0:0:0:0:17 listed in]
                             [list.dnswl.org]
  0.0 SPOOFED_FREEMAIL       No description available.
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 30 Apr 2025 02:56:24 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

Earlier this week Msys2 upgraded GCC to version 15.1.0, which lead to this =
build error:=0A=
=0A=
=0A=
emacsclient.c:1718:9: warning: no previous declaration for 'set_fg' [-Wmiss=
ing-variable-de=0A=
clarations]=0A=
=A01718 | FARPROC set_fg; =A0/* Pointer to AllowSetForegroundWindow. =A0*/=
=0A=
=A0 =A0 =A0 | =A0 =A0 =A0 =A0 ^~~~~~=0A=
emacsclient.c:1719:9: warning: no previous declaration for 'get_wc' [-Wmiss=
ing-variable-de=0A=
clarations]=0A=
=A01719 | FARPROC get_wc; =A0/* Pointer to RealGetWindowClassA. =A0*/=0A=
=A0 =A0 =A0 | =A0 =A0 =A0 =A0 ^~~~~~=0A=
emacsclient.c: In function 'w32_find_emacs_process':=0A=
emacsclient.c:1759:9: error: too many arguments to function 'get_wc'; expec=
ted 0, have 3=0A=
=A01759 | =A0 if (! get_wc (hWnd, class, sizeof (class))=0A=
=A0 =A0 =A0 | =A0 =A0 =A0 =A0 ^~~~~~ =A0~~~~=0A=
emacsclient.c:1770:3: error: too many arguments to function 'set_fg'; expec=
ted 0, have 1=0A=
=A01770 | =A0 set_fg (emacs_pid);=0A=
=A0 =A0 =A0 | =A0 ^~~~~~ =A0~~~~~~~~~=0A=
emacsclient.c:1718:9: warning: no previous declaration for 'set_fg' [-Wmiss=
ing-variable-de=0A=
clarations]=0A=
=A01718 | FARPROC set_fg; =A0/* Pointer to AllowSetForegroundWindow. =A0*/=
=0A=
=A0 =A0 =A0 | =A0 =A0 =A0 =A0 ^~~~~~=0A=
emacsclient.c:1719:9: warning: no previous declaration for 'get_wc' [-Wmiss=
ing-variable-de=0A=
clarations]=0A=
=A01719 | FARPROC get_wc; =A0/* Pointer to RealGetWindowClassA. =A0*/=0A=
=A0 =A0 =A0 | =A0 =A0 =A0 =A0 ^~~~~~=0A=
emacsclient.c: In function 'w32_find_emacs_process':=0A=
emacsclient.c:1759:9: error: too many arguments to function 'get_wc'; expec=
ted 0, have 3=0A=
=A01759 | =A0 if (! get_wc (hWnd, class, sizeof (class))=0A=
=A0 =A0 =A0 | =A0 =A0 =A0 =A0 ^~~~~~ =A0~~~~=0A=
emacsclient.c:1770:3: error: too many arguments to function 'set_fg'; expec=
ted 0, have 1=0A=
=A01770 | =A0 set_fg (emacs_pid);=0A=
=A0 =A0 =A0 | =A0 ^~~~~~ =A0~~~~~~~~~=0A=
make[2]: *** [Makefile:446: emacsclientw.exe] Error 1=0A=
make[2]: *** Waiting for unfinished jobs....=0A=
make[2]: *** [Makefile:439: emacsclient.exe] Error 1=0A=
make[2]: Leaving directory '/e/home/repo/emacs/lib-src'=0A=
make[1]: *** [Makefile:529: lib-src] Error 2=0A=
make[1]: *** Waiting for unfinished jobs....=0A=
=0A=
=0A=
I think the cause is GCC 15 now use C23 by default[1], and appending ` -std=
=3Dgnu17 ` compiler flag does solve the problem.=0A=
=0A=
[1]https://gcc.gnu.org/gcc-15/porting_to.html#c23=



------------=_1746011881-28469-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 78160-done) by debbugs.gnu.org; 30 Apr 2025 11:17:41 +0000
Received: from localhost ([127.0.0.1]:40289 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uA5Rd-0007OS-AZ
	for submit <at> debbugs.gnu.org; Wed, 30 Apr 2025 07:17:41 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:48642)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uA5Ra-0007O8-HP
 for 78160-done <at> debbugs.gnu.org; Wed, 30 Apr 2025 07:17:39 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1uA5RV-0000FU-5M; Wed, 30 Apr 2025 07:17:33 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=D0VqK53h6ijhuATPjv5f3uXJFNt6ZPzE1ibHNOxjh6w=; b=dQN1OwCjle7l
 FrTnf9l56ASh+vzT+54H1iP9sBXv4qNupRLHB0F4DrNj6838REaspYLP9PPy53SD0UTYgVu4jXiem
 SfBr/E7a0MrJgOFzSbXOXKTyNzjHWsFzYi2/LN8G2hxpvM4jLi0uzZFHtAvuugPw/lGl5PCzuaUF6
 YUZiJDLX/3kqam49P9CvA0pRuz55ygH73VNOgHbxQvc/8FGCdguDBiEAnuCAro8huNOWLHHi3Jc2O
 JatFn8KNLUkDsx8WN+TkXUWWqM9MzEVwRsoD4Yhv9hR8RmsW4om3+dyqY/QtyVpsDTTh7uG84e3c8
 f3BiXMb2Oe/C25TTApwgfw==;
Date: Wed, 30 Apr 2025 14:17:27 +0300
Message-Id: <86ecx9oq48.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: MAN ONE <pRoMMMModE@HIDDEN>
In-Reply-To: <SY7P300MB103434A44895B44F71E2FDB7DF832@HIDDEN>
 (message from MAN ONE on Wed, 30 Apr 2025 11:02:26 +0000)
Subject: Re: bug#78160: Emacs fail to build with GCC 15
References: <SY7P300MB103448970A2D5FF7EED93F6DDF832@HIDDEN>
 <86o6wenjz5.fsf@HIDDEN>
 <SY7P300MB10349362AFD0A5F0F4311884DF832@HIDDEN>
 <86frhqnev4.fsf@HIDDEN> 
 <SY7P300MB103434A44895B44F71E2FDB7DF832@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78160-done
Cc: 78160-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: MAN ONE <pRoMMMModE@HIDDEN>
> CC: "78160 <at> debbugs.gnu.org" <78160 <at> debbugs.gnu.org>
> Date: Wed, 30 Apr 2025 11:02:26 +0000
> msip_labels:
> 
> The second patch produce no compilation error or warnings, emacsclient.exe and emacsclientw.exe also working, I think the second patch does the trick.

Thanks, installed on both the emacs-30 and the master branch, and
closing this bug.

As for the other warnings, feel free to submit a separate bug report
with them, so we could consider how and on which branch to fix them.


------------=_1746011881-28469-0--


Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: MAN ONE <pRoMMMModE@HIDDEN>
Subject: bug#78160: closed (Re: bug#78160: Emacs fail to build with GCC 15)
Message-ID: <handler.78160.D78160.174601186128429.notifdone <at> debbugs.gnu.org>
References: <86ecx9oq48.fsf@HIDDEN>
 <SY7P300MB103448970A2D5FF7EED93F6DDF832@HIDDEN>
X-Gnu-PR-Message: they-closed 78160
X-Gnu-PR-Package: emacs
Reply-To: 78160 <at> debbugs.gnu.org
Date: Wed, 30 Apr 2025 11:18:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1746011882-28469-1"

This is a multi-part message in MIME format...

------------=_1746011882-28469-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your bug report

#78160: Emacs fail to build with GCC 15

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 78160 <at> debbugs.gnu.org.

--=20
78160: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D78160
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

------------=_1746011882-28469-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 78160-done) by debbugs.gnu.org; 30 Apr 2025 11:17:41 +0000
Received: from localhost ([127.0.0.1]:40289 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uA5Rd-0007OS-AZ
	for submit <at> debbugs.gnu.org; Wed, 30 Apr 2025 07:17:41 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:48642)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uA5Ra-0007O8-HP
 for 78160-done <at> debbugs.gnu.org; Wed, 30 Apr 2025 07:17:39 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1uA5RV-0000FU-5M; Wed, 30 Apr 2025 07:17:33 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=D0VqK53h6ijhuATPjv5f3uXJFNt6ZPzE1ibHNOxjh6w=; b=dQN1OwCjle7l
 FrTnf9l56ASh+vzT+54H1iP9sBXv4qNupRLHB0F4DrNj6838REaspYLP9PPy53SD0UTYgVu4jXiem
 SfBr/E7a0MrJgOFzSbXOXKTyNzjHWsFzYi2/LN8G2hxpvM4jLi0uzZFHtAvuugPw/lGl5PCzuaUF6
 YUZiJDLX/3kqam49P9CvA0pRuz55ygH73VNOgHbxQvc/8FGCdguDBiEAnuCAro8huNOWLHHi3Jc2O
 JatFn8KNLUkDsx8WN+TkXUWWqM9MzEVwRsoD4Yhv9hR8RmsW4om3+dyqY/QtyVpsDTTh7uG84e3c8
 f3BiXMb2Oe/C25TTApwgfw==;
Date: Wed, 30 Apr 2025 14:17:27 +0300
Message-Id: <86ecx9oq48.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: MAN ONE <pRoMMMModE@HIDDEN>
In-Reply-To: <SY7P300MB103434A44895B44F71E2FDB7DF832@HIDDEN>
 (message from MAN ONE on Wed, 30 Apr 2025 11:02:26 +0000)
Subject: Re: bug#78160: Emacs fail to build with GCC 15
References: <SY7P300MB103448970A2D5FF7EED93F6DDF832@HIDDEN>
 <86o6wenjz5.fsf@HIDDEN>
 <SY7P300MB10349362AFD0A5F0F4311884DF832@HIDDEN>
 <86frhqnev4.fsf@HIDDEN> 
 <SY7P300MB103434A44895B44F71E2FDB7DF832@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78160-done
Cc: 78160-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: MAN ONE <pRoMMMModE@HIDDEN>
> CC: "78160 <at> debbugs.gnu.org" <78160 <at> debbugs.gnu.org>
> Date: Wed, 30 Apr 2025 11:02:26 +0000
> msip_labels:
> 
> The second patch produce no compilation error or warnings, emacsclient.exe and emacsclientw.exe also working, I think the second patch does the trick.

Thanks, installed on both the emacs-30 and the master branch, and
closing this bug.

As for the other warnings, feel free to submit a separate bug report
with them, so we could consider how and on which branch to fix them.


------------=_1746011882-28469-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 30 Apr 2025 06:56:31 +0000
Received: from localhost ([127.0.0.1]:38959 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uA1Mr-00049M-Cf
	for submit <at> debbugs.gnu.org; Wed, 30 Apr 2025 02:56:31 -0400
Received: from lists.gnu.org ([2001:470:142::17]:57148)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <pRoMMMModE@HIDDEN>)
 id 1u9zIe-0001ls-0a
 for submit <at> debbugs.gnu.org; Wed, 30 Apr 2025 00:44:00 -0400
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 <pRoMMMModE@HIDDEN>)
 id 1u9zIX-0000en-NH
 for bug-gnu-emacs@HIDDEN; Wed, 30 Apr 2025 00:43:53 -0400
Received: from
 mail-australiasoutheastazolkn19010009.outbound.protection.outlook.com
 ([52.103.73.9] helo=MEUPR01CU001.outbound.protection.outlook.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <pRoMMMModE@HIDDEN>)
 id 1u9zIV-0001Hl-HY
 for bug-gnu-emacs@HIDDEN; Wed, 30 Apr 2025 00:43:53 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;
 b=xFNwgJwDbYPiFOqA9KLeqHRomc/M7w+J0IxVDOOIiUE25GDLIXZ9r6yRrpuY4+0uLnF08oLMIUuVSedyy4akL4efqVSR+VE2hCb3szUlVw3bkpNvdE+aeJlQHwZnufOBN/2XsjaZvYy3vgMUx1gR5Nn/bwrcs5zPwuE0R/wObx4jjXyOj2WUDdAG9lO1zxXo37dP5VfmqxRySGJ7o/gnwQAijfHbiPiXFbeXZsjACnK3H9oNQ5Nzvnw3Uu2aJDqKvzODcVKNVdKvlsrg6Os/u8DuXqhJRFov7yQyGWT3Iy999Q7TrrS4SjZ2cEjgws0bzocvBQx2pWvaqCpUXHwbkw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector10001;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=4AMBWoTzwn4iZPEwhdxGOugPmoU6kciUsmmvhP6F9AA=;
 b=gUPX39Oub6s9zFPdbtOBUtRQrKtmE0WFiJVjLCHVPtsOfQ9tZP1I+9zUFJIU6B/NRqKk2HR+FNwDHjqoqy+zSwCwqBghH8mLe0Ow9y69fvDCkKjPBwbqyGtAqsUdq3V2Ih4UkB4MpWT/tzzsCKycobVIuuJVKq1P0UOHpJY75Up7cpQTGU7AItMic2yDUVWcqYvUCzrInDlr4e4nTsdvLq8SM5evhkHjZtfdAP29PAcBYEtT/ZNqngqN7LUDGZ9cVxGhRWd73CqH8ABUTc7dJAKF/FxPgwJx6n9xOo8+lr/dpn61qB6ZOZ2XvyYcn/nj2MM4UluoxbVKH50bMKKppw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
 dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com;
 s=selector1;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=4AMBWoTzwn4iZPEwhdxGOugPmoU6kciUsmmvhP6F9AA=;
 b=SDw80K4BJ6QXItXuy4utKtfvNK3YTnPfOxcdD47pfSUz5RxvtItS1G1VZ+OpBD8kbw4Q11dwhpCPnc1J/7qRtdtkcgzZIKwoG+3qu357CNAiFD54KAg0uFuajyz2Ot7yVrUn/6XX6nlSz+yMfPhfVUXI2JshEDGB4z4ovd8BX19g0d031oQiekbe/eZS1EbvpQaTzPKG2TcXD0xdZnfgCTOYplguDXCH52eRSz8jgLofX/QV3r7zjCib+8udLjtA2G6alOc23fmWMf/PLLE7TRAI7kTf8X/8ZWB2EqwQxym5GOpF1aTktKhgvzcwOeMhGcQ38wzX6VelliN9Ulmftw==
Received: from SY7P300MB1034.AUSP300.PROD.OUTLOOK.COM (2603:10c6:10:28f::5) by
 SY0P300MB0279.AUSP300.PROD.OUTLOOK.COM (2603:10c6:10:251::5) with
 Microsoft
 SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.8699.20; Wed, 30 Apr 2025 04:38:42 +0000
Received: from SY7P300MB1034.AUSP300.PROD.OUTLOOK.COM
 ([fe80::a3bb:c9bd:2690:45a4]) by SY7P300MB1034.AUSP300.PROD.OUTLOOK.COM
 ([fe80::a3bb:c9bd:2690:45a4%4]) with mapi id 15.20.8699.019; Wed, 30 Apr 2025
 04:38:42 +0000
From: MAN ONE <pRoMMMModE@HIDDEN>
To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN>
Subject: Emacs fail to build with GCC 15
Thread-Topic: Emacs fail to build with GCC 15
Thread-Index: AQHbuYglEmPHLudwCUSzpkuqFuWDJw==
Date: Wed, 30 Apr 2025 04:38:42 +0000
Message-ID: <SY7P300MB103448970A2D5FF7EED93F6DDF832@HIDDEN>
Accept-Language: en-US, zh-CN
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
msip_labels: 
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SY7P300MB1034:EE_|SY0P300MB0279:EE_
x-ms-office365-filtering-correlation-id: 60c9cff3-eb68-46c3-4800-08dd87a0e290
x-microsoft-antispam: BCL:0;
 ARA:14566002|8062599003|461199028|15030799003|8060799006|19110799003|7092599003|15080799006|10035399004|440099028|3412199025|102099032;
x-microsoft-antispam-message-info: =?iso-8859-1?Q?9jCevqZH/zv5Mb6VFnIn4Wwi46asKALpDd7FFYDnX/Dr/qqgLS6IaV5oLA?=
 =?iso-8859-1?Q?e/Z0LUDoS2XyQy2wtNzzLhi30A8Sa8QoOTVmFr7RA0GHDcfoEUmQhxrpZp?=
 =?iso-8859-1?Q?snrwsLQmL8uM/f9rc/UwLExuiFobMZ3fyP87CK4RFVerja9VUEJCZJVT3J?=
 =?iso-8859-1?Q?Bnb/C+npPsh0ULYq+c557aj3XnduqMh5SJxz4mpGPIx2q1vU/2ypqDZ7OP?=
 =?iso-8859-1?Q?w1amxfaN0ZT7fAfB4osKDwVtJTmaQuYWDQ133u+/T5ip8tHsA/rtFNIJZu?=
 =?iso-8859-1?Q?Z5DUvDPbExw/WOPCHkG3sxloSOyuV/XLpCDiiA/7ue47latO7Wtwk6Galk?=
 =?iso-8859-1?Q?QDS1nqWxk+5DZdYVX7MkOIYkI4OHo1TfSURzvhF4RPrVyvvrlu1+cQKWm2?=
 =?iso-8859-1?Q?LPfkT0l1U/x5K8ChNFFvl/MGx0yEPMho2gJbPNGpEApPdiAiyCsc3rtqyP?=
 =?iso-8859-1?Q?29ZWD0Pcx3+h2s6BIATk5eTEr6/VlYL78X2nyT+N9oAXiFJns9pzGEnAls?=
 =?iso-8859-1?Q?rHMW5lcxMB5CkE8cKkQwVgIPufNW3PiuplmsS0SkJo3fbVfIkcwklZxfxn?=
 =?iso-8859-1?Q?7gq3CO/q3jmugGzfdNvk/xO42UM25UUIPGH7lJOSI5a9QyeufJpgny6J8J?=
 =?iso-8859-1?Q?zh3LAo+VZMOPCCFQ0vOcuChhrgED0NxCKSr5QASomB3le47bqfFDtuMBYq?=
 =?iso-8859-1?Q?I384o9k3twl6bS7R3Xh80MTBvX+y2BIVPzRxekUfRsHwdFu9kQ8KIlnkrw?=
 =?iso-8859-1?Q?fXuR7CFlZHRra+G3kDzNRyWwopwNEAKYo64i+G+h3tKX6MBKRBjGwbIv3k?=
 =?iso-8859-1?Q?QvLz5bHuHLqbJJyFlTeJFuIxnJxRaXXJreYeu1CWUWYHXaG7w17qFcp4EA?=
 =?iso-8859-1?Q?hPkJepbDWq/i904MIChn+/e4Cs3tvIJCOaM+1WB/xxIPRELpdvTjeMqnbp?=
 =?iso-8859-1?Q?Co/xjt+1wQtJQIGiKKuRkMrZV9mwMZFw7dSW/q0G5fPGH5ufaEeTWjhGvK?=
 =?iso-8859-1?Q?RgPYSn6bcD5JytxWxACs/xTOtQv5ank0fiqYPloALFWaekA4eebAKSrE4w?=
 =?iso-8859-1?Q?fUsPPWUQnBm4x+SHNaGK2bwgP4irfBax14U3P/NqzEkKIG2uvzcOis1JoC?=
 =?iso-8859-1?Q?+inuh5bT8KGR+HnhVlnxeo/D1zqru3IVz5FnzdxwCXUnZqcS0Zdhw9MG4z?=
 =?iso-8859-1?Q?4IYOanI3hpHmIo6bFdl7O91uoifFMBO/HJDje/HPivmNwZB10c3TkzXp?=
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?Ifj+AHCEodIMBSt0gFTDAuCi6udontjz51FNXwtNCgh1P0C9wCk30H/jzn?=
 =?iso-8859-1?Q?CKAdFl6YO2oAd1PvF6/yQ1eCIvYoPldudXCDCeTcWcrhemaoQDy+qFdd3Q?=
 =?iso-8859-1?Q?xsfsndD3oeXKbz6eyLWHZNKcj6vCyDK9fZR8pKry3XbK/1pdufpxmLr20T?=
 =?iso-8859-1?Q?gTWco77H5gL4TlTXPLOWmfOKEsQu4mqVckn9AhwtVicAg9OM1OFxBR+DRn?=
 =?iso-8859-1?Q?PEDiTwZuBcF+tFftjJo/n8EQ4nwxiDYmPN681OacbiefmKOaO1aSnr/WQv?=
 =?iso-8859-1?Q?L6H9YBFYdWaVgzHm+xyTd3aPWyCGAOM7e6gzUPzGbrButfFbmFmnrUdMil?=
 =?iso-8859-1?Q?//WBcCF41//09fPFB7pf4tdzVVsZJ+pY3POylB7LAP7XCxB+My41gNkjCQ?=
 =?iso-8859-1?Q?Zj46cKz30xoLZbQVuB5UXjm8jpD+MFgf46lDDINsAb+LIgXxvSIl9IRIRU?=
 =?iso-8859-1?Q?DvUtqpHpqI7Powvj5uJjz4v77kezR5tVc4ZIxDngch2IeMpfz4Q945IaoC?=
 =?iso-8859-1?Q?iFYJn+u+svQBuGdM2F1K843zMi4FC121olJTLh8Ubuhx8Og6k4cUxEXGfH?=
 =?iso-8859-1?Q?ylyh5MiZ04LX25LM2b5jtonMEVb8wP839a60aBer+hU84kVkzspYAxSIdi?=
 =?iso-8859-1?Q?Uqf2DSI0zi+WK1b9Q+y43xvYy3KHZsagw7XrYQBziKh5Icx2sZsRYJTSGw?=
 =?iso-8859-1?Q?dx5/1ad4idXvL3aAqTHVm4C51K7CJbLMHOOBuXAYJD2tCR4Pr3AwqbQEwx?=
 =?iso-8859-1?Q?aq7pnv+uQ02gGHqs8TUZWnINrxiNLdxk1AR4iOp8NylTnf17Gpacs70SNr?=
 =?iso-8859-1?Q?KndFgD+TYNcSEFMOvHcNFBIrI04IvZa5QRx4FGY2ynnXg+5EofYlbdJvZ0?=
 =?iso-8859-1?Q?7tlbBPuvERvVCHev5pFYQQgd3m+zflUliLdnqP1JMTQTI2gqoR84+q7jTo?=
 =?iso-8859-1?Q?5fJkqhwCWvVFSNxCh+msEIS5VeeewdaIdlmIUv1wgTO5PLQwyobHQFqHE8?=
 =?iso-8859-1?Q?bQr4JVxIseDc12HUy/8EztHQ5LwcLevhl7IS/OZ0mBWW1J+l+vMW0mwUxZ?=
 =?iso-8859-1?Q?Yra6RoEmjl536UwRt3RtY6gBqfERvGIGks81rCc0Y1FOhl6AIF3FDYWBYD?=
 =?iso-8859-1?Q?dhj/QdXgi2G+gt0irbkJvaDwtN6g48iwmejFrxJLBY5V7HJQM1yb0FlQhK?=
 =?iso-8859-1?Q?1DdYg+VZ79uNA3QAT8fKsqC16Y2kNruw15saeuOAMQAh4KeNEn0hG8dhIH?=
 =?iso-8859-1?Q?5nId0vNp1RQMo01SYTflPqLJsXZyvv5BQMyYIGZL4=3D?=
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SY7P300MB1034.AUSP300.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: 60c9cff3-eb68-46c3-4800-08dd87a0e290
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Apr 2025 04:38:42.1840 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SY0P300MB0279
Received-SPF: pass client-ip=52.103.73.9; envelope-from=pRoMMMModE@HIDDEN;
 helo=MEUPR01CU001.outbound.protection.outlook.com
X-Spam_score_int: -10
X-Spam_score: -1.1
X-Spam_bar: -
X-Spam_report: (-1.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, FREEMAIL_FROM=0.001,
 HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=1, RCVD_IN_DNSWL_NONE=-0.0001,
 RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Earlier this week Msys2 upgraded GCC to version 15.1.0, which
    lead to this build error: emacsclient.c:1718:9: warning: no previous declaration
    for 'set_fg' [-Wmissing-variable-de clarations]  1718 | FARPROC set_fg;  /*
    Pointer to AllowSetForegroundWindow.  */       |         ^~~~~~ emacs [...]
    
 
 Content analysis details:   (2.0 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  1.0 HK_RANDOM_FROM         From username looks random
  0.0 HK_RANDOM_ENVFROM      Envelope sender username looks random
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
  1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
                             provider (prommmmode[at]outlook.com)
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [2001:470:142:0:0:0:0:17 listed in]
                             [list.dnswl.org]
  0.0 SPOOFED_FREEMAIL       No description available.
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 30 Apr 2025 02:56:24 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

Earlier this week Msys2 upgraded GCC to version 15.1.0, which lead to this =
build error:=0A=
=0A=
=0A=
emacsclient.c:1718:9: warning: no previous declaration for 'set_fg' [-Wmiss=
ing-variable-de=0A=
clarations]=0A=
=A01718 | FARPROC set_fg; =A0/* Pointer to AllowSetForegroundWindow. =A0*/=
=0A=
=A0 =A0 =A0 | =A0 =A0 =A0 =A0 ^~~~~~=0A=
emacsclient.c:1719:9: warning: no previous declaration for 'get_wc' [-Wmiss=
ing-variable-de=0A=
clarations]=0A=
=A01719 | FARPROC get_wc; =A0/* Pointer to RealGetWindowClassA. =A0*/=0A=
=A0 =A0 =A0 | =A0 =A0 =A0 =A0 ^~~~~~=0A=
emacsclient.c: In function 'w32_find_emacs_process':=0A=
emacsclient.c:1759:9: error: too many arguments to function 'get_wc'; expec=
ted 0, have 3=0A=
=A01759 | =A0 if (! get_wc (hWnd, class, sizeof (class))=0A=
=A0 =A0 =A0 | =A0 =A0 =A0 =A0 ^~~~~~ =A0~~~~=0A=
emacsclient.c:1770:3: error: too many arguments to function 'set_fg'; expec=
ted 0, have 1=0A=
=A01770 | =A0 set_fg (emacs_pid);=0A=
=A0 =A0 =A0 | =A0 ^~~~~~ =A0~~~~~~~~~=0A=
emacsclient.c:1718:9: warning: no previous declaration for 'set_fg' [-Wmiss=
ing-variable-de=0A=
clarations]=0A=
=A01718 | FARPROC set_fg; =A0/* Pointer to AllowSetForegroundWindow. =A0*/=
=0A=
=A0 =A0 =A0 | =A0 =A0 =A0 =A0 ^~~~~~=0A=
emacsclient.c:1719:9: warning: no previous declaration for 'get_wc' [-Wmiss=
ing-variable-de=0A=
clarations]=0A=
=A01719 | FARPROC get_wc; =A0/* Pointer to RealGetWindowClassA. =A0*/=0A=
=A0 =A0 =A0 | =A0 =A0 =A0 =A0 ^~~~~~=0A=
emacsclient.c: In function 'w32_find_emacs_process':=0A=
emacsclient.c:1759:9: error: too many arguments to function 'get_wc'; expec=
ted 0, have 3=0A=
=A01759 | =A0 if (! get_wc (hWnd, class, sizeof (class))=0A=
=A0 =A0 =A0 | =A0 =A0 =A0 =A0 ^~~~~~ =A0~~~~=0A=
emacsclient.c:1770:3: error: too many arguments to function 'set_fg'; expec=
ted 0, have 1=0A=
=A01770 | =A0 set_fg (emacs_pid);=0A=
=A0 =A0 =A0 | =A0 ^~~~~~ =A0~~~~~~~~~=0A=
make[2]: *** [Makefile:446: emacsclientw.exe] Error 1=0A=
make[2]: *** Waiting for unfinished jobs....=0A=
make[2]: *** [Makefile:439: emacsclient.exe] Error 1=0A=
make[2]: Leaving directory '/e/home/repo/emacs/lib-src'=0A=
make[1]: *** [Makefile:529: lib-src] Error 2=0A=
make[1]: *** Waiting for unfinished jobs....=0A=
=0A=
=0A=
I think the cause is GCC 15 now use C23 by default[1], and appending ` -std=
=3Dgnu17 ` compiler flag does solve the problem.=0A=
=0A=
[1]https://gcc.gnu.org/gcc-15/porting_to.html#c23=



------------=_1746011882-28469-1--



Last modified: Wed, 30 Apr 2025 11:30:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.