GNOME Bugzilla – Bug 341845
[gail-gnome] fix compile warnings
Last modified: 2006-09-25 16:49:11 UTC
Gail-GNOME has some compile warnings with mismatched/undefined prototypes. AIUI, those can lead to miscompilation on 64bit systems. Attached patch makes gail-gnome -Werror clean.
Created attachment 65492 [details] [review] patch
Comment on attachment 65492 [details] [review] patch What's up with the G_UNLIKELYs ?
They annotate the expression for branch prediction. Since the condition will only be true once, it makes the subsequent calls predict the right branch (that's faster on some CPU architectures). The stock gobject G_DEFINE_TYPE* macros use this as well, so I think it's safe.