Re: turning g_assert* into warnings

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.

The fact that you *could* fix up 'make test' (for GLib, etc, etc, etc)
by making warnings terminate the program doesn't help. It's still

- Owen

Attachment: signature.asc
Description: This is a digitally signed message part

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]