Skip to content

ibus-anthy does not build with -Werror #9

@lantw44

Description

@lantw44

Issue description:
autogen.sh puts -Werror in CFLAGS and CXXFLAGS by default, but gir/anthygcontext.c uses the function g_type_class_add_private, which is deprecated in GLib 2.58.

Steps to reproduce:

  1. Run autogen.sh.
  2. Build ibus-anthy with gmake.
  3. It fails with the following errors:
anthygcontext.c:55:5: error: 'g_type_class_add_private' is deprecated [-Werror,-Wdeprecated-declarations]
    g_type_class_add_private (class, sizeof (AnthyGContextPrivate));
    ^
/home/lantw44/gnome/devinstall/include/glib-2.0/gobject/gtype.h:1302:1: note: 'g_type_class_add_private' has been explicitly marked deprecated here
GLIB_DEPRECATED_IN_2_58
^
/home/lantw44/gnome/devinstall/include/glib-2.0/glib/gversionmacros.h:534:49: note: expanded from macro 'GLIB_DEPRECATED_IN_2_58'
# define GLIB_DEPRECATED_IN_2_58                GLIB_DEPRECATED
                                                ^
/home/lantw44/gnome/devinstall/include/glib-2.0/glib/gmacros.h:476:25: note: expanded from macro 'GLIB_DEPRECATED'
#define GLIB_DEPRECATED G_DEPRECATED _GLIB_EXTERN
                        ^
/home/lantw44/gnome/devinstall/include/glib-2.0/glib/gmacros.h:438:37: note: expanded from macro 'G_DEPRECATED'
#define G_DEPRECATED __attribute__((__deprecated__))
                                    ^
1 error generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions