GNOME Bugzilla – Bug 627890
[GScanner] the token field should be declared as guint and not as GTokenType
Last modified: 2018-05-24 12:41:50 UTC
Because of this I get warnings when compiling GTK+ like this: gtkbindings.c: In function 'gtk_binding_parse_signal': gtkbindings.c:1443:2: warning: case value '45' not in enumerated type 'GTokenType' gtkbindings.c: In function 'gtk_binding_parse_bind': gtkbindings.c:1508:22: warning: comparison between 'GTokenType' and 'enum <anonymous>' gtkbindings.c:1509:22: warning: comparison between 'GTokenType' and 'enum <anonymous>' gtkbindings.c:1511:27: warning: comparison between 'GTokenType' and 'enum <anonymous>'
the correct way to handle this is to fix GScanner to declare the @token member; the other option is to cast scanner->token to guint before checking it; in this case, this code: switch (scanner->token) { ... should become: guint token = (guint) scanner->token; switch (token) { ...
Filled bug #627962 to fix GTK+ warnings
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/336.