Mark assertion functions as G_GNUC_NORETURN. (#506461, Sebastian Dröge)

2007-12-24  Matthias Clasen  <mclasen@redhat.com>

        * glib/gtestutils.h:
        * glib/glib.symbols: Mark assertion functions as G_GNUC_NORETURN.
        (#506461, Sebastian Dröge)



svn path=/trunk/; revision=6221
This commit is contained in:
Matthias Clasen 2007-12-31 05:25:25 +00:00 committed by Matthias Clasen
parent 227ef243b1
commit de08b57f02
3 changed files with 14 additions and 8 deletions

View File

@ -1,3 +1,9 @@
2007-12-24 Matthias Clasen <mclasen@redhat.com>
* glib/gtestutils.h:
* glib/glib.symbols: Mark assertion functions as G_GNUC_NORETURN.
(#506461, Sebastian Dröge)
2007-12-24 Matthias Clasen <mclasen@redhat.com> 2007-12-24 Matthias Clasen <mclasen@redhat.com>
* glib/gtestutils.c: Include sys/time.h. (#505258) * glib/gtestutils.c: Include sys/time.h. (#505258)

View File

@ -1278,10 +1278,10 @@ g_thread_pool_set_sort_function
#if IN_HEADER(__G_TEST_UTILS_H__) #if IN_HEADER(__G_TEST_UTILS_H__)
#if IN_FILE(__G_TEST_UTILS_C__) #if IN_FILE(__G_TEST_UTILS_C__)
g_assertion_message g_assertion_message G_GNUC_NORETURN
g_assertion_message_cmpnum g_assertion_message_cmpnum G_GNUC_NORETURN
g_assertion_message_cmpstr g_assertion_message_cmpstr G_GNUC_NORETURN
g_assertion_message_expr g_assertion_message_expr G_GNUC_NORETURN
g_strcmp0 g_strcmp0
g_test_add_data_func g_test_add_data_func
g_test_add_func g_test_add_func

View File

@ -166,12 +166,12 @@ void g_assertion_message (const char *domain,
const char *file, const char *file,
int line, int line,
const char *func, const char *func,
const char *message); const char *message) G_GNUC_NORETURN;
void g_assertion_message_expr (const char *domain, void g_assertion_message_expr (const char *domain,
const char *file, const char *file,
int line, int line,
const char *func, const char *func,
const char *expr); const char *expr) G_GNUC_NORETURN;
void g_assertion_message_cmpstr (const char *domain, void g_assertion_message_cmpstr (const char *domain,
const char *file, const char *file,
int line, int line,
@ -179,7 +179,7 @@ void g_assertion_message_cmpstr (const char *domain,
const char *expr, const char *expr,
const char *arg1, const char *arg1,
const char *cmp, const char *cmp,
const char *arg2); const char *arg2) G_GNUC_NORETURN;
void g_assertion_message_cmpnum (const char *domain, void g_assertion_message_cmpnum (const char *domain,
const char *file, const char *file,
int line, int line,
@ -188,7 +188,7 @@ void g_assertion_message_cmpnum (const char *domain,
long double arg1, long double arg1,
const char *cmp, const char *cmp,
long double arg2, long double arg2,
char numtype); char numtype) G_GNUC_NORETURN;
void g_test_add_vtable (const char *testpath, void g_test_add_vtable (const char *testpath,
gsize data_size, gsize data_size,
gconstpointer test_data, gconstpointer test_data,