From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#61452: [PATCH] ; * src/textconv.c (textconv_query): Add empty statement Date: Sun, 12 Feb 2023 12:34:56 +0000 Message-ID: <874jrrxdsf.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9398"; mail-complaints-to="usenet@ciao.gmane.io" To: 61452@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 12 13:36:22 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pRBag-00029s-6p for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Feb 2023 13:36:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRBaO-0006zv-Ms; Sun, 12 Feb 2023 07:36:04 -0500 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 1pRBaM-0006zS-IP for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 07:36:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pRBaM-00011O-8L for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 07:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pRBaM-0002kQ-4V for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 07:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Feb 2023 12:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61452 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167620531310487 (code B ref -1); Sun, 12 Feb 2023 12:36:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Feb 2023 12:35:13 +0000 Original-Received: from localhost ([127.0.0.1]:44302 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRBZZ-0002j4-8I for submit@debbugs.gnu.org; Sun, 12 Feb 2023 07:35:13 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:50080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRBZX-0002iw-Ae for submit@debbugs.gnu.org; Sun, 12 Feb 2023 07:35:11 -0500 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 1pRBZV-0006lT-PF for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 07:35:09 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRBZR-0000Sp-DP for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 07:35:08 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5297A24015F for ; Sun, 12 Feb 2023 13:35:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1676205301; bh=7N7ygDiS7cSxQhNvE5oxAiHDRJ8xTS0D9cyMWqQ42qI=; h=From:To:Subject:Date:From; b=Z/HSYPfp9ryrzxdpw6ZiI+vQDz9KLgRVHPrNmRap0ELk2/dZBMktRXnwDr4e2rrts 8NF0u1gBqj4nXpUpuy/Ju7n2mLlq/qjxinubW9B4X7+OGznehGC3fstrHj93kNO3jI Vn1IK3NLrdPESgVqLjlnoTn7A+0/waWTApEePLFNF3xzAYFgJkoqS6iIGvgtYhed25 afHqVtOcbYk5FHepMQYCMYiXDXwEQO6bznMh8DXTxCRxS5B0+3tzfhkfmPi6XJjgrE 2FBkqFzHNX6+0bPPr3ZXWVmnI/Ot+Q81HG3ZEBLPysJBu5fLLhGEi4OcV95c6vgADc uIP6z3TfgCCng== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PF6PH4tbKz6tn4 for ; Sun, 12 Feb 2023 13:34:57 +0100 (CET) Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255403 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Tags: patch X-Debbugs-CC: Po Lu My GCC gives me this error --8<---------------cut here---------------start------------->8--- textconv.c: In function =E2=80=98textconv_query=E2=80=99: textconv.c:281:5: error: label at end of compound statement 281 | default: | ^~~~~~~ --8<---------------cut here---------------end--------------->8--- $ gcc --version gcc (Debian 10.2.1-6) 10.2.1 20210110 Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. It appears it doesn't want a "default" at the end of a block. Adding a semicolon fixes this. In GNU Emacs 30.0.50 (build 5, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) of 2023-01-30 built on icterid Repository revision: e19b91f946a99aa812a21bbeff654569bad945d2 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye) Configured using: 'configure --with-imagemagick --with-x-toolkit=3Dlucid --with-native-compilation=3Daot' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-src-textconv.c-textconv_query-Add-empty-statement.patch >From 9dda7a64ea9e4d1140c5919680d3fa436da4f902 Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Sun, 12 Feb 2023 13:32:55 +0100 Subject: [PATCH] ; * src/textconv.c (textconv_query): Add empty statement --- src/textconv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/textconv.c b/src/textconv.c index e91e127b71c..29dc7f7a41d 100644 --- a/src/textconv.c +++ b/src/textconv.c @@ -279,6 +279,7 @@ textconv_query (struct frame *f, struct textconv_callback_struct *query) } default: + ; } /* Undo any changes to the excursion. */ -- 2.30.2 --=-=-= Content-Type: text/plain -- Philip Kaludercic --=-=-=--