GNOME Bugzilla – Bug 648204
Posix backend uses glib functions
Last modified: 2011-12-09 10:07:08 UTC
Created attachment 186276 [details] test program As reported in the mailing list. the attached source generated calls to g_return_if_fail. Use the following command to compile it: $ valac --profile posix a.vala --pkg cairo instead of g_return_if_fail, in posix profile it should use assert() or a #define'd version of the glib function. the workaround is to use Context? instead of Context, so null pointer is not checked and g_return_if_fail is not called.
assert() aborts the program rather than returning from the function.
commit 36808eb53bbcea1a1bc035fc33245ebcb5f4130b Author: Luca Bruno <lucabru@src.gnome.org> Date: Wed Aug 17 17:39:30 2011 +0200 codegen: Skip precondition check for parameters in the posix profile Fixes bug 648204. This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
*** Bug 621701 has been marked as a duplicate of this bug. ***
*** Bug 631739 has been marked as a duplicate of this bug. ***