implicit function declaration errors
- Ubuntu 22.04 Alpha
- gnome-text-editor 42.alpha2
- libadwaita 1.0.1
- gtk4 4.6.0
implicit function declaration and int conversion errors
../src/editor-application-actions.c: In function ‘get_system_information’:
../src/editor-application-actions.c:111:27: error: implicit declaration of function ‘adw_get_major_version’;
did you mean ‘gtk_get_major_version’? [-Werror=implicit-function-declaration]
111 | adw_get_major_version (),
| ^~~~~~~~~~~~~~~~~~~~~
| gtk_get_major_version
../src/editor-application-actions.c:111:27: warning: nested extern declaration of ‘adw_get_major_version’ [-Wnested-externs]
../src/editor-application-actions.c:112:27: error: implicit declaration of function ‘adw_get_minor_version’;
did you mean ‘gtk_get_minor_version’? [-Werror=implicit-function-declaration]
112 | adw_get_minor_version (),
| ^~~~~~~~~~~~~~~~~~~~~
| gtk_get_minor_version
../src/editor-application-actions.c:112:27: warning: nested extern declaration of ‘adw_get_minor_version’ [-Wnested-externs]
../src/editor-application-actions.c:113:27: error: implicit declaration of function ‘adw_get_micro_version’;
did you mean ‘gtk_get_micro_version’? [-Werror=implicit-function-declaration]
113 | adw_get_micro_version (),
| ^~~~~~~~~~~~~~~~~~~~~
| gtk_get_micro_version
../src/editor-application-actions.c:113:27: warning: nested extern declaration of ‘adw_get_micro_version’ [-Wnested-externs]
cc1: some warnings being treated as errors
…
../src/editor-application.c: In function ‘style_variant_to_color_scheme’:
../src/editor-application.c:153:30: error: ‘ADW_COLOR_SCHEME_DEFAULT’ undeclared (first use in this function)
153 | g_value_set_enum (value, ADW_COLOR_SCHEME_DEFAULT);
| ^~~~~~~~~~~~~~~~~~~~~~~~
../src/editor-application.c:153:30: note: each undeclared identifier is reported only
once for each function it appears in
../src/editor-application.c:155:30: error: ‘ADW_COLOR_SCHEME_FORCE_DARK’ undeclared (first use in this function)
155 | g_value_set_enum (value, ADW_COLOR_SCHEME_FORCE_DARK);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/editor-application.c:157:30: error: ‘ADW_COLOR_SCHEME_FORCE_LIGHT’ undeclared (first use in this function)
157 | g_value_set_enum (value, ADW_COLOR_SCHEME_FORCE_LIGHT);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/editor-application.c: At top level:
../src/editor-application.c:187:31: error: unknown type name ‘AdwStyleManager’
187 | AdwStyleManager *style_manager)
| ^~~~~~~~~~~~~~~
../src/editor-application.c: In function ‘editor_application_startup’:
../src/editor-application.c:288:3: error: unknown type name ‘AdwStyleManager’
288 | AdwStyleManager *style_manager;
| ^~~~~~~~~~~~~~~
../src/editor-application.c:335:19: error: implicit declaration of function ‘adw_style_manager_get_default’;
did you mean ‘gtk_recent_manager_get_default’? [-Werror=implicit-function-declaration]
335 | style_manager = adw_style_manager_get_default ();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| gtk_recent_manager_get_default
../src/editor-application.c:335:19: warning: nested extern declaration of ‘adw_style_manager_get_default’ [-Wnested-externs]
../src/editor-application.c:335:17: error: assignment to ‘int *’ from ‘int’ makes pointer
from integer without a cast [-Werror=int-conversion]
335 | style_manager = adw_style_manager_get_default ();
| ^
In file included from /usr/include/glib-2.0/gobject/gobject.h:27,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:22,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from ../src/editor-types.h:23,
from ../src/editor-application.h:23,
from ../src/editor-application-private.h:23,
from ../src/editor-application.c:27:
../src/editor-application.c:339:40: error: ‘on_style_manager_notify_dark’ undeclared
(first use in this function)
339 | G_CALLBACK (on_style_manager_notify_dark),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gclosure.h:71:56: note: in definition of macro ‘G_CALLBACK’
71 | #define G_CALLBACK(f) ((GCallback) (f))
| ^
../src/editor-application.c: In function ‘editor_application_get_style_scheme’:
../src/editor-application.c:583:3: error: unknown type name ‘AdwStyleManager’
583 | AdwStyleManager *style_manager;
| ^~~~~~~~~~~~~~~
../src/editor-application.c:589:17: error: assignment to ‘int *’ from ‘int’ makes pointer
from integer without a cast [-Werror=int-conversion]
589 | style_manager = adw_style_manager_get_default ();
| ^
../src/editor-application.c:600:7: error: implicit declaration of function ‘adw_style_manager_get_dark’
[-Werror=implicit-function-declaration]
600 | if (adw_style_manager_get_dark (style_manager))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
../src/editor-application.c:600:7: warning: nested extern declaration of ‘adw_style_manager_get_dark’ [-Wnested-externs]
cc1: some warnings being treated as errors