Add G_GNUC_WARN_UNUSED_RESULT to clutter_init and init_with_args
authorNeil Roberts <neil@linux.intel.com>
Tue, 22 Feb 2011 12:38:19 +0000 (12:38 +0000)
committerNeil Roberts <neil@linux.intel.com>
Mon, 28 Feb 2011 14:10:05 +0000 (14:10 +0000)
commit3d34d9fea1a8b2e34a9970ea71ab359726eb9729
treec53208ab18e7531afdf5ac6606fa2ad44fc02b96
parentaece642adb22ed054d1d4bca99eeeeb0b4b80b83
Add G_GNUC_WARN_UNUSED_RESULT to clutter_init and init_with_args

Many people expect clutter_init to work the same way as gtk_init which
exits the program on init failure. clutter_init however returns a
status code on failure which applications need to handle because if
the init fails then any further Clutter calls are likely to crash. In
Clutter 2.0 we may want to change this to be more like GTK+.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2574
clutter/clutter-main.h