[glib: 2/3] gio-launch-desktop: preserve static_assert message
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/3] gio-launch-desktop: preserve static_assert message
- Date: Wed, 31 Aug 2022 15:06:28 +0000 (UTC)
commit 813ce7f0b545c0cc5add0128015602a1767c5c8a
Author: Marco Trevisan <mail 3v1n0 net>
Date: Mon Aug 15 17:02:06 2022 +0000
gio-launch-desktop: preserve static_assert message
gio/gio-launch-desktop.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gio-launch-desktop.c b/gio/gio-launch-desktop.c
index 1703d0cb15..26b9ae1a14 100644
--- a/gio/gio-launch-desktop.c
+++ b/gio/gio-launch-desktop.c
@@ -121,8 +121,8 @@ journal_stream_fd (const char *identifier,
/* Arbitrary large size for the sending buffer, from systemd */
int large_buffer_size = 8 * 1024 * 1024;
- G_STATIC_ASSERT (LOG_EMERG == 0);
- G_STATIC_ASSERT (LOG_DEBUG == 7);
+ G_STATIC_ASSERT (LOG_EMERG == 0 && "Linux ABI defines LOG_EMERG");
+ G_STATIC_ASSERT (LOG_DEBUG == 7 && "Linux ABI defines LOG_DEBUG");
fd = socket (AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]