diff --git a/glib/gmacros.h b/glib/gmacros.h index e5cd32eca..65f3738a6 100644 --- a/glib/gmacros.h +++ b/glib/gmacros.h @@ -423,6 +423,12 @@ * It is used for declaring functions which never return. It enables * optimization of the function, and avoids possible compiler warnings. * + * Since 2.68, it is recommended that code uses %G_NORETURN instead of + * %G_GNUC_NORETURN, as that works on more platforms and compilers (in + * particular, MSVC and C++11) than %G_GNUC_NORETURN, which works with GCC and + * Clang only. %G_GNUC_NORETURN continues to work, so has not been deprecated + * yet. + * * Place the attribute after the declaration, just before the semicolon. * * |[