emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#61452: closed ([PATCH] ; * src/textconv.c (textconv_query): Add empt


From: GNU bug Tracking System
Subject: bug#61452: closed ([PATCH] ; * src/textconv.c (textconv_query): Add empty statement)
Date: Tue, 14 Feb 2023 14:46:02 +0000

Your message dated Tue, 14 Feb 2023 14:45:36 +0000
with message-id <875yc45mr3.fsf@posteo.net>
and subject line Re: bug#61452: [PATCH] ; * src/textconv.c (textconv_query): 
Add empty statement
has caused the debbugs.gnu.org bug report #61452,
regarding [PATCH] ; * src/textconv.c (textconv_query): Add empty statement
to be marked as done.

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


-- 
61452: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61452
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] ; * src/textconv.c (textconv_query): Add empty statement Date: Sun, 12 Feb 2023 12:34:56 +0000
Tags: patch

X-Debbugs-CC: Po Lu <luangruo@yahoo.com>

My GCC gives me this error

--8<---------------cut here---------------start------------->8---
textconv.c: In function ‘textconv_query’:
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=lucid
 --with-native-compilation=aot'

Attachment: 0001-src-textconv.c-textconv_query-Add-empty-statement.patch
Description: Text Data

-- 
Philip Kaludercic

--- End Message ---
--- Begin Message --- Subject: Re: bug#61452: [PATCH] ; * src/textconv.c (textconv_query): Add empty statement Date: Tue, 14 Feb 2023 14:45:36 +0000
Philip Kaludercic <philipk@posteo.net> writes:

> Tags: patch
>
> X-Debbugs-CC: Po Lu <luangruo@yahoo.com>
>
> My GCC gives me this error
>
> textconv.c: In function ‘textconv_query’:
> textconv.c:281:5: error: label at end of compound statement
>   281 |     default:
>       |     ^~~~~~~

A similar patch has already been applied, so I am closing this report.

> $ 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=lucid
>  --with-native-compilation=aot'

-- 
Philip Kaludercic


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]