On Fri, 12 Oct 2007, Owen Taylor wrote: > On Fri, 2007-10-12 at 11:52 +0200, Tim Janik wrote: > >> i'd like to propose to turn g_assert and friends like g_assert_not_reached >> into warnings instead of errors. i'll give a bit of background before the >> details though. > > This is an incompatible change. The contract now is that unless you > compile with G_DISABLE_ASSERT, g_assert(FALSE) will cause your program > to exit with a non-zero status.
i don't think a function contract is anything worth if it depends on build time options. if there is any contract breach here, it was the introduction of G_DISABLE_ASSERT (Thu Feb 19 01:11:48 1998 in gtk+-0.99.4 ;) however, due to the g_warn_if_fail variant having quite a following, i intend to change my proposal anyway. so persuing this argument is moot. > - Owen --- ciaoTJ _______________________________________________ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list