46.2 build fails: implicit declaration of function ‘gtk_source_style_copy’
Looks like something is wrong with new version because build fails with:
[tkloczko@pers-jacek x86_64-redhat-linux-gnu]$ ninja
[3/12] Compiling C object plugins/quickhighlight/libquickhighlight.so.p/gedit-quick-highlight-plugin.c.o
FAILED: plugins/quickhighlight/libquickhighlight.so.p/gedit-quick-highlight-plugin.c.o
/usr/bin/gcc -Iplugins/quickhighlight/libquickhighlight.so.p -Iplugins/quickhighlight -I../plugins/quickhighlight -I. -I.. -Isubprojects/libgd -I../subprojects/libgd -Igedit -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libgedit-amtk-5 -I/usr/include/tepl-6 -I/usr/include/libgedit-gtksourceview-300 -I/usr/include/libpeas-1.0 -I/usr/include/gobject-introspection-1.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -fno-strict-aliasing -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wdeclaration-after-statement -Wformat=2 -Wold-style-definition -Wcast-align -Wformat-nonliteral -Wformat-security -Wno-sign-compare -Wstrict-aliasing -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wredundant-decls -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wimplicit-function-declaration -Wreturn-type -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference -Wjump-misses-init -Wdouble-promotion -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -fPIC -DLIBGD_TAGGED_ENTRY=1 -pthread -MD -MQ plugins/quickhighlight/libquickhighlight.so.p/gedit-quick-highlight-plugin.c.o -MF plugins/quickhighlight/libquickhighlight.so.p/gedit-quick-highlight-plugin.c.o.d -o plugins/quickhighlight/libquickhighlight.so.p/gedit-quick-highlight-plugin.c.o -c ../plugins/quickhighlight/gedit-quick-highlight-plugin.c
../plugins/quickhighlight/gedit-quick-highlight-plugin.c: In function ‘gedit_quick_highlight_plugin_load_style’:
../plugins/quickhighlight/gedit-quick-highlight-plugin.c:96:47: error: implicit declaration of function ‘gtk_source_style_copy’; did you mean ‘gtk_source_style_apply’? [-Wimplicit-function-declaration]
96 | plugin->priv->style = gtk_source_style_copy (style);
| ^~~~~~~~~~~~~~~~~~~~~
| gtk_source_style_apply
../plugins/quickhighlight/gedit-quick-highlight-plugin.c:96:47: warning: nested extern declaration of ‘gtk_source_style_copy’ [-Wnested-externs]
../plugins/quickhighlight/gedit-quick-highlight-plugin.c:96:45: error: assignment to ‘GtkSourceStyle *’ {aka ‘struct _GtkSourceStyle *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
96 | plugin->priv->style = gtk_source_style_copy (style);
| ^
[11/12] Generating gedit/Gedit-3.0.typelib with a custom command