GNOME Bugzilla – Bug 698179
Uninitialized variables because find_pref() retval not checked
Last modified: 2013-04-17 09:59:18 UTC
CC prefs.lo core/prefs.c: In function 'meta_prefs_set_num_workspaces': core/prefs.c:1714:37: error: 'pref' may be used uninitialized in this function [-Werror=maybe-uninitialized] g_settings_set_int (SETTINGS (pref->schema), ^ core/prefs.c: In function 'meta_prefs_set_no_tab_popup': core/prefs.c:2221:41: error: 'pref' may be used uninitialized in this function [-Werror=maybe-uninitialized] g_settings_set_boolean (SETTINGS (pref->schema), KEY_NO_TAB_POPUP, whether); ^ cc1: all warnings being treated as errors make[4]: *** [prefs.lo] Error 1 make[4]: Leaving directory `/data/projects/mutter/src'
Created attachment 241715 [details] [review] Fix use of uninitialized variables If mutter is going to -Werror by default, then it can play footloose and fancy free with this sorta stuff. Patch against gnome-3-8 branch.
Review of attachment 241715 [details] [review]: Looks fine.
Attachment 241715 [details] pushed as 4608cb6 - Fix use of uninitialized variables Also pushed to gnome-3-8 branch