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

Alex J Lennon ajlennon at dynamicdevices.co.uk
Thu Oct 30 16:08:49 UTC 2014


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?



More information about the Mono-devel-list mailing list