[maemo-developers] G_DISABLE_CAST_CHECKS in packages an maybe on builders
From: Graham Cobb g+770 at cobb.uk.netDate: Fri Mar 19 17:04:14 EET 2010
- Previous message: G_DISABLE_CAST_CHECKS in packages an maybe on builders
- Next message: G_DISABLE_CAST_CHECKS in packages an maybe on builders
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Friday 19 March 2010 14:42:05 Stefan Kost wrote: > I noticed that still lots of packages that use GObject are not disable > GObject cast checks in their builds. *It is a safe thing to do*. The > macro is doing a cast, if checking is enabled it checks and warn in the > case of an mismatch. The check is pointless in device that is running a > PR image as we have the (sys)logging turned off. So we can also turn off > the checks (the checks are not preventing anything). This makes binaries > smaller and faster. That is a good suggestion for production binaries. However, for beta binaries I would prefer to leave it on -- I find the console mesages very useful during testing (and I run syslog on my development device as well). > I wonder if it would make sense to disable this globally on the package > builder. Having the check enabled is most useful in conjunction with > defining G_DEBUG="fatal_warnings" and checking for coredumps. No thanks, at least not without a way to override it. Graham
- Previous message: G_DISABLE_CAST_CHECKS in packages an maybe on builders
- Next message: G_DISABLE_CAST_CHECKS in packages an maybe on builders
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]