GNOME Bugzilla – Bug 140604
gail code fixes (strict aliasing, unused code etc.)
Last modified: 2004-12-22 21:47:04 UTC
Attached patches fixes most gcc warnings in code (apply in this order): gail-strict-aliasing.patch: Fixes code for latest gcc aliasing analysis. gail-void.patch: Fixed void functions declarations. gail-errors.patch: Fixes code error (gcc warning). gail-uninitialized.patch: Fixes potentially uninitialized variables. gail-unused-vars.patch: Removes uninitialized variables. gail-unused-func.patch: Removes uninitialized functions. gail-warn.patch: Fixes minor warnings. Not yet fixed warnings: gaillabel.c: In function `gail_label_ref_relation_set': gaillabel.c:500: warning: assignment from incompatible pointer type gaillabel.c: In function `gail_label_real_notify_gtk': gaillabel.c:315: warning: `top_level' might be used uninitialized in this function testlib.c: In function `get_arg_of_func': testlib.c:836: warning: `retString' might be used uninitialized in this function
Created attachment 26866 [details] [review] gail-strict-aliasing.patch
Created attachment 26867 [details] [review] gail-void.patch
Created attachment 26868 [details] [review] gail-errors.patch
Created attachment 26869 [details] [review] gail-uninitialized.patch
Created attachment 26870 [details] [review] gail-unused-vars.patch
Created attachment 26871 [details] [review] gail-unused-func.patch
Created attachment 26872 [details] [review] gail-warn.patch
Patches applied, with some minor changes. Other warnings also adderssed.