qemu-s390x
[Top][All Lists]
Advanced

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

Re: [PATCH 01/39] docs/spin: replace assert(0) with g_assert_not_reached


From: Richard Henderson
Subject: Re: [PATCH 01/39] docs/spin: replace assert(0) with g_assert_not_reached()
Date: Wed, 11 Sep 2024 09:55:57 -0700
User-agent: Mozilla Thunderbird

On 9/11/24 08:25, Pierrick Bouvier wrote:
On 9/11/24 05:51, Richard W.M. Jones wrote:
Although it's unlikely to be used on any compiler that can also
compile qemu, there is a third implementation of g_assert_not_reached
that does nothing, see:

https://gitlab.gnome.org/GNOME/glib/-/blob/927683ebd94eb66c0d7868b77863f57ce9c5bc76/ glib/gtestutils.h#L269

Rich.


Interesting.
At least gcc, clang and msvc are covered, this should be ok for most of the 
builds.

All of that is inside #ifdef G_DISABLE_ASSERT, which we will never set.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]