[Mono-dev] [eglib] Warning: assertion function returning
kumpera at gmail.com
Thu Oct 30 16:28:25 UTC 2014
Since the noreturn behavior is not verifiable by the compiler (it's part of
the API contract) we can a hack to silence the warning.
On Thu, Oct 30, 2014 at 12:08 PM, Alex J Lennon <
ajlennon at dynamicdevices.co.uk> wrote:
> I'm seeing an eglib warning about an assertion handling function with a
> G_GNUC_NORETURN attribute that is returning.
> goutput.c: In function ‘monoeg_assertion_message’:
> goutput.c:135:1: warning: ‘noreturn’ function does return [enabled by
> I'm wondering how this should be resolved, ie. whether this function
> should block, whether the attribute should be removed, or "something else"?
> If the assertion handler should block then is while(1); sensible, or a
> very bad idea?
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list