[gtk: 1/2] Include `gdk-private.h` to fix error about `g_source_set_static_name`
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] Include `gdk-private.h` to fix error about `g_source_set_static_name`
- Date: Mon, 7 Feb 2022 23:54:57 +0000 (UTC)
commit 2ceba0d31c40a916fc336d8662f1225710221cf8
Author: Mosè Giordano <mose gnu org>
Date: Sat Feb 5 21:51:40 2022 +0000
Include `gdk-private.h` to fix error about `g_source_set_static_name`
Without this change we get the following error:
```
[1/13] Compiling C object gdk/macos/libgdk-macos.a.p/gdkdisplaylinksource.c.o
ninja: job failed: /opt/bin/aarch64-apple-darwin20-libgfortran5-cxx11/aarch64-apple-darwin20-clang
-Igdk/macos/libgdk-macos.a.p -Igdk/macos -I../gdk/macos -I. -I.. -Igdk -I../gdk -Isubprojects/pango/pango
-I../subprojects/pango/pango -Isubprojects/pango -I../subprojects/pango
-I/workspace/destdir/include/gdk-pixbuf-2.0 -I/workspace/destdir/include
-I/workspace/destdir/include/glib-2.0 -I/workspace/destdir/lib/glib-2.0/include
-I/workspace/destdir/lib/libffi-3.2.1/include -I/workspace/destdir/include/libpng16 -I/usr/include/libmount
-I/usr/include/blkid -I/workspace/destdir/include/cairo -I/workspace/destdir/include/pixman-1
-I/workspace/destdir/include/freetype2 -I/workspace/destdir/include/fribidi
-I/workspace/destdir/include/harfbuzz -I/workspace/destdir/include/graphene-1.0
-I/workspace/destdir/lib/graphene-1.0/include -I/workspace/destdir/include/gio-unix-2.0 -fcolor-diagnostics
-Wall -Winvalid-pch -std=gnu99 -O2 -g -DG_LOG_USE_STRUCTURED=1 -DGLIB_DISABLE_DEPRECATION_WARNINGS
'-DGTK_VERSION="4.6.0"' -D_GNU_SOURCE -DG_ENABLE_DEBUG -DGTK_COMPILATION '-DG_LOG_DOMAIN="Gdk"'
-xobjective-c -fno-strict-aliasing -Wno-c++11-extensions -Wno-missing-include-dirs -Wno-typedef-redefinition
-Wformat=2 -Wformat-nonliteral -Wformat-security -Wignored-qualifiers -Wimplicit-function-declaration
-Wmisleading-indentation -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn
-Wnested-externs -Wold-style-definition -Wpointer-arith -Wshadow -Wstrict-prototypes -Wswitch-default
-Wswitch-enum -Wundef -Wuninitialized -Wunused -Werror=address -Werror=array-bounds -Werror=empty-body
-Werror=implicit -Werror=implicit-fallthrough -Werror=init-self -Werror=int-to-pointer-cast -Werror=main
-Werror=missing-braces -Werror=missing-declarations -Werror=missing-prototypes -Werror=nonnull
-Werror=pointer-to-int-cast -Werror=redundant-decls -Werror=return-type -Werror=sequence-point
-Werror=trigraphs -Werror=vla -Werror=write-strings -Wnull-dereference -fvisibility=hidden -MD
-MQ gdk/macos/libgdk-macos.a.p/gdkdisplaylinksource.c.o -MF
gdk/macos/libgdk-macos.a.p/gdkdisplaylinksource.c.o.d -o gdk/macos/libgdk-macos.a.p/gdkdisplaylinksource.c.o
-c ../gdk/macos/gdkdisplaylinksource.c
../gdk/macos/gdkdisplaylinksource.c:201:3: error: implicit declaration of function
'g_source_set_static_name' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
g_source_set_static_name (source, "[gdk] quartz frame clock");
^
1 error generated.
ninja: subcommand failed
```
gdk/macos/gdkdisplaylinksource.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gdk/macos/gdkdisplaylinksource.c b/gdk/macos/gdkdisplaylinksource.c
index 9587875dde..292b8be519 100644
--- a/gdk/macos/gdkdisplaylinksource.c
+++ b/gdk/macos/gdkdisplaylinksource.c
@@ -27,6 +27,7 @@
#include "gdkdisplaylinksource.h"
#include "gdkmacoseventsource-private.h"
+#include "gdk-private.h"
static gint64 host_to_frame_clock_time (gint64 val);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]