* bug#72575: [PATCH-scratch/igc] Fix gcc-8 compile error
@ 2024-08-11 13:12 Yikai Zhao
2024-08-11 13:32 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 4+ messages in thread
From: Yikai Zhao @ 2024-08-11 13:12 UTC (permalink / raw)
To: 72575
[-- Attachment #1: Type: text/plain, Size: 179 bytes --]
Tags: patch
This is a patch for scratch/igc branch.
Before this commit, with MPS and X11 enabled, gcc-8 would fail to
compile complaining "label at end of compound statement"
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-gcc-8-compile-error.patch --]
[-- Type: text/patch, Size: 717 bytes --]
From dd24e92fab736596c5b65245a083a9c6b8e2edd2 Mon Sep 17 00:00:00 2001
From: Yikai Zhao <yikai@z1k.dev>
Date: Sun, 11 Aug 2024 20:53:13 +0800
Subject: [PATCH] ; Fix gcc-8 compile error
Before this commit, with MPS and X11 enabled, gcc-8 would fail to
compile complaining "label at end of compound statement"
---
src/xfaces.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/xfaces.c b/src/xfaces.c
index 69d4070b603..e3b5e867462 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -4642,6 +4642,7 @@ free_realized_face (struct frame *f, struct face *face)
#ifndef HAVE_MPS
xfree (face);
#endif
+ (void)0; /* prevent the above label being the end of a compound statement */
}
}
--
2.44.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#72575: [PATCH-scratch/igc] Fix gcc-8 compile error
2024-08-11 13:12 bug#72575: [PATCH-scratch/igc] Fix gcc-8 compile error Yikai Zhao
@ 2024-08-11 13:32 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-13 8:38 ` Andrea Corallo
0 siblings, 1 reply; 4+ messages in thread
From: Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-08-11 13:32 UTC (permalink / raw)
To: Yikai Zhao; +Cc: 72575-done@debbugs.gnu.org
On Sunday, August 11th, 2024 at 13:12, Yikai Zhao <yikai@z1k.dev> wrote:
> Tags: patch
>
> This is a patch for scratch/igc branch.
>
> Before this commit, with MPS and X11 enabled, gcc-8 would fail to
> compile complaining "label at end of compound statement"
Thank you! Applied and pushed.
I don't know whether you have signed the copyright paperwork, but this change should be exempt in any case.
Thanks for testing this branch! I hope it works for you and would love to hear about any experiences.
(My apologies if you receive this twice, my mail agent was acting up).
Pip
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#72575: [PATCH-scratch/igc] Fix gcc-8 compile error
2024-08-11 13:32 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-08-13 8:38 ` Andrea Corallo
2024-08-13 13:59 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 4+ messages in thread
From: Andrea Corallo @ 2024-08-13 8:38 UTC (permalink / raw)
To: 72575; +Cc: pipcet, yikai
Pip Cet via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs@gnu.org> writes:
> On Sunday, August 11th, 2024 at 13:12, Yikai Zhao <yikai@z1k.dev> wrote:
>> Tags: patch
>>
>> This is a patch for scratch/igc branch.
>>
>> Before this commit, with MPS and X11 enabled, gcc-8 would fail to
>> compile complaining "label at end of compound statement"
>
> Thank you! Applied and pushed.
>
> I don't know whether you have signed the copyright paperwork,
He did, you see it by looking at his previous commits with no copyright
exempt or ask maitainers.
Thanks
Andrea
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#72575: [PATCH-scratch/igc] Fix gcc-8 compile error
2024-08-13 8:38 ` Andrea Corallo
@ 2024-08-13 13:59 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 0 replies; 4+ messages in thread
From: Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-08-13 13:59 UTC (permalink / raw)
To: Andrea Corallo; +Cc: yikai, 72575
"Andrea Corallo" <acorallo@gnu.org> writes:
> Pip Cet via "Bug reports for GNU Emacs, the Swiss army knife of text
> editors" <bug-gnu-emacs@gnu.org> writes:
>
>> On Sunday, August 11th, 2024 at 13:12, Yikai Zhao <yikai@z1k.dev> wrote:
>>> Tags: patch
>>>
>>> This is a patch for scratch/igc branch.
>>>
>>> Before this commit, with MPS and X11 enabled, gcc-8 would fail to
>>> compile complaining "label at end of compound statement"
>>
>> Thank you! Applied and pushed.
>>
>> I don't know whether you have signed the copyright paperwork,
>
> He did, you see it by looking at his previous commits with no copyright
> exempt or ask maitainers.
Thank you for that advice, I'll make sure to do that in future.
Pip
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-08-13 13:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-11 13:12 bug#72575: [PATCH-scratch/igc] Fix gcc-8 compile error Yikai Zhao
2024-08-11 13:32 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-13 8:38 ` Andrea Corallo
2024-08-13 13:59 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).