Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of deprecated glib function 'g_type_class_add_private' #1

Open
PureTryOut opened this issue Oct 17, 2018 · 0 comments
Open

Use of deprecated glib function 'g_type_class_add_private' #1

PureTryOut opened this issue Oct 17, 2018 · 0 comments

Comments

@PureTryOut
Copy link

PureTryOut commented Oct 17, 2018

As of commit 7e5db31d36532274c2b2428ef9bace796928785e of Glib, g_type_class_add_private has been deprecated. This currently prevents building.

hd-config-file.c: In function 'hd_config_file_class_init':
hd-config-file.c:261:3: error: 'g_type_class_add_private' is deprecated [-Werror=deprecated-declarations]
   g_type_class_add_private (g_object_class, sizeof (HDConfigFilePrivate));
   ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from hd-config-file.c:28:
/usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
 void     g_type_class_add_private       (gpointer                    g_class,
          ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant