https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114776
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Seems like g_assertion_message should have _Noreturn on it if you are compiling for C11-C17 and [[noreturn]] for C++11+ (and C23+).