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 300646 - Fix gcc warnings in eel
Fix gcc warnings in eel
Status: RESOLVED FIXED
Product: eel
Classification: Deprecated
Component: general
2.10.x
Other All
: High normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 169911 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-04-14 17:53 UTC by Kjartan Maraas
Modified: 2005-07-08 15:37 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
patch the warnings (12.10 KB, patch)
2005-04-14 17:54 UTC, Kjartan Maraas
none Details | Review
Alternate patch, uses -Wno-pointer-sign in configure.in instead of casts (2.50 KB, patch)
2005-05-08 19:08 UTC, James Cape
none Details | Review

Description Kjartan Maraas 2005-04-14 17:53:36 UTC
This patch fixes some warnings from gcc4/sparse.
Comment 1 Kjartan Maraas 2005-04-14 17:54:17 UTC
Created attachment 45259 [details] [review]
patch the warnings
Comment 2 James Cape 2005-05-08 19:08:11 UTC
Created attachment 46178 [details] [review]
Alternate patch, uses -Wno-pointer-sign in configure.in instead of casts
Comment 3 Vincent Untz 2005-06-05 12:48:37 UTC
*** Bug 169911 has been marked as a duplicate of this bug. ***
Comment 4 Luis Villa 2005-06-09 16:22:50 UTC
Poke... can we get one of these committed? It is breaking my gcc4 tinderbox.
Comment 5 Luis Villa 2005-06-09 16:38:07 UTC
Hrm, also, FWIW, the second patch didn't seem to actually fix my compile
problem. Kjartan's did, however.
Comment 6 Martin Wehner 2005-06-10 02:03:54 UTC
Thanks for the patches - it builds on both branches now.
Luis: Since I went with disabling the pointer signedness warnings to avoid the
casting, you have to do a 'make distclean' before rebuilding or you'll get
cached compiler options from automake.

2005-06-10  Martin Wehner  <martin.wehner@gmail.com>

	* eel/eel-labeled-image.c: (labeled_image_get_image_bounds_fill),
	(eel_labeled_image_get_image_bounds),
	(labeled_image_get_label_bounds_fill),
	(eel_labeled_image_get_label_bounds):
	Add default cases with asserts.
	
	* eel/eel-mime-extensions.c: (open_temp_cache_file):
	Initialize filename in error case.

	* eel/eel-open-with-dialog.c: (eel_open_with_dialog_add_icon_idle):
	* eel/eel-preferences.c: (preferences_entry_remove_auto_storage):
	Use NULL instead of 0.

	* configure.in:
	Add --Wno-pointer-sign

	Fix gcc4 compilation (#300646). Based on patches from
	Kjartan Maraas <kmaraas@gnome.org> and
	James M. Cape <jcape@ignore-your.tv>
Comment 7 Luis Villa 2005-07-08 15:37:21 UTC
Martin (and world)- for future reference, the tinderbox does a more
sophisticated version of 'make clean' which looks something like:

rm -rf
cvs up
make

:)