unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* 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

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).