After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 349837 - wrong initialization of gsm_protocol_data
wrong initialization of gsm_protocol_data
Status: RESOLVED FIXED
Product: gnome-session
Classification: Core
Component: gnome-session
2.15.x
Other Linux
: Normal normal
: ---
Assigned To: Session Maintainers
Session Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-08-03 19:54 UTC by Kjartan Maraas
Modified: 2006-08-04 11:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for the warning (519 bytes, patch)
2006-08-03 19:57 UTC, Kjartan Maraas
accepted-commit_now Details | Review

Description Kjartan Maraas 2006-08-03 19:54:48 UTC
sparse says this:

gdm-logout-action.c:71:9: warning: incorrect type in initializer (different base types)
gdm-logout-action.c:71:9:    expected char *auth_cookie
gdm-logout-action.c:71:9:    got int [signed] enum GdmLogoutAction [signed] [toplevel] GDM_LOGOUT_ACTION_NONE

I think the attached patch will work?
Comment 1 Kjartan Maraas 2006-08-03 19:57:14 UTC
Created attachment 70160 [details] [review]
patch for the warning
Comment 2 Ray Strode [halfline] 2006-08-03 20:03:44 UTC
should work, or you could just do

static GdmProtocolData gdm_protocol_data;

since it's static, it will be 0-filled anyway.
Comment 3 Kjartan Maraas 2006-08-04 11:34:10 UTC
Commited on HEAD.