problem when building with -DG_DISABLE_CHECKS
Submitted by Fabrice Bellet
Link to original bug (#778001)
Description
Created attachment 344664 g_return_val_if_fail() args should not have side effects
When using g_return_val_if_fail(expr), expr should not have side effects, because it should be possible to build empathy with G_DISABLE_CHECKS. The patch fixes the two places when it happens: when calling gtk_clutter_init() and cheese_gtk_init(). If you think it's important to keep the possibility to fail when cheese_gtk_init() or gtk_clutter_init() fail, the patch can be reworked with an intermediate variable.
Patch 344664, "g_return_val_if_fail() args should not have side effects":
nosideeffects.diff