[Mono-dev] [eglib] Warning: assertion function returning

Rodrigo Kumpera 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:

> Hi,
>
> 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
> default]
>
> 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?
>
> Thanks,
>
> Alex
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20141030/254642dd/attachment.html>


More information about the Mono-devel-list mailing list