mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
In case of G_DISABLE_ASSERT replace "G_STMT_START{ }G_STMT_END" with
2002-06-28 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * glib/gmessages.h (g_assert, g_assert_not_reached, g_return_if_fail, g_return_val_if_fail): In case of G_DISABLE_ASSERT replace "G_STMT_START{ }G_STMT_END" with "G_STMT_START{ (void)0; }G_STMT_END", because the former chokes gcc prior to 3.0. (#86664)
This commit is contained in:
parent
a7174adefb
commit
f6ccf00fed
@ -1,3 +1,11 @@
|
||||
2002-06-28 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gmessages.h (g_assert, g_assert_not_reached,
|
||||
g_return_if_fail, g_return_val_if_fail): In case of
|
||||
G_DISABLE_ASSERT replace "G_STMT_START{ }G_STMT_END" with
|
||||
"G_STMT_START{ (void)0; }G_STMT_END", because the former chokes
|
||||
gcc prior to 3.0. (#86664)
|
||||
|
||||
2002-06-26 Yanko Kaneti <yaneti@declera.com>
|
||||
|
||||
* configure.in: (ALL_LINGUAS) Added Bulgarian (bg).
|
||||
|
@ -1,3 +1,11 @@
|
||||
2002-06-28 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gmessages.h (g_assert, g_assert_not_reached,
|
||||
g_return_if_fail, g_return_val_if_fail): In case of
|
||||
G_DISABLE_ASSERT replace "G_STMT_START{ }G_STMT_END" with
|
||||
"G_STMT_START{ (void)0; }G_STMT_END", because the former chokes
|
||||
gcc prior to 3.0. (#86664)
|
||||
|
||||
2002-06-26 Yanko Kaneti <yaneti@declera.com>
|
||||
|
||||
* configure.in: (ALL_LINGUAS) Added Bulgarian (bg).
|
||||
|
@ -1,3 +1,11 @@
|
||||
2002-06-28 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gmessages.h (g_assert, g_assert_not_reached,
|
||||
g_return_if_fail, g_return_val_if_fail): In case of
|
||||
G_DISABLE_ASSERT replace "G_STMT_START{ }G_STMT_END" with
|
||||
"G_STMT_START{ (void)0; }G_STMT_END", because the former chokes
|
||||
gcc prior to 3.0. (#86664)
|
||||
|
||||
2002-06-26 Yanko Kaneti <yaneti@declera.com>
|
||||
|
||||
* configure.in: (ALL_LINGUAS) Added Bulgarian (bg).
|
||||
|
@ -1,3 +1,11 @@
|
||||
2002-06-28 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gmessages.h (g_assert, g_assert_not_reached,
|
||||
g_return_if_fail, g_return_val_if_fail): In case of
|
||||
G_DISABLE_ASSERT replace "G_STMT_START{ }G_STMT_END" with
|
||||
"G_STMT_START{ (void)0; }G_STMT_END", because the former chokes
|
||||
gcc prior to 3.0. (#86664)
|
||||
|
||||
2002-06-26 Yanko Kaneti <yaneti@declera.com>
|
||||
|
||||
* configure.in: (ALL_LINGUAS) Added Bulgarian (bg).
|
||||
|
@ -1,3 +1,11 @@
|
||||
2002-06-28 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gmessages.h (g_assert, g_assert_not_reached,
|
||||
g_return_if_fail, g_return_val_if_fail): In case of
|
||||
G_DISABLE_ASSERT replace "G_STMT_START{ }G_STMT_END" with
|
||||
"G_STMT_START{ (void)0; }G_STMT_END", because the former chokes
|
||||
gcc prior to 3.0. (#86664)
|
||||
|
||||
2002-06-26 Yanko Kaneti <yaneti@declera.com>
|
||||
|
||||
* configure.in: (ALL_LINGUAS) Added Bulgarian (bg).
|
||||
|
@ -1,3 +1,11 @@
|
||||
2002-06-28 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gmessages.h (g_assert, g_assert_not_reached,
|
||||
g_return_if_fail, g_return_val_if_fail): In case of
|
||||
G_DISABLE_ASSERT replace "G_STMT_START{ }G_STMT_END" with
|
||||
"G_STMT_START{ (void)0; }G_STMT_END", because the former chokes
|
||||
gcc prior to 3.0. (#86664)
|
||||
|
||||
2002-06-26 Yanko Kaneti <yaneti@declera.com>
|
||||
|
||||
* configure.in: (ALL_LINGUAS) Added Bulgarian (bg).
|
||||
|
@ -1,3 +1,11 @@
|
||||
2002-06-28 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gmessages.h (g_assert, g_assert_not_reached,
|
||||
g_return_if_fail, g_return_val_if_fail): In case of
|
||||
G_DISABLE_ASSERT replace "G_STMT_START{ }G_STMT_END" with
|
||||
"G_STMT_START{ (void)0; }G_STMT_END", because the former chokes
|
||||
gcc prior to 3.0. (#86664)
|
||||
|
||||
2002-06-26 Yanko Kaneti <yaneti@declera.com>
|
||||
|
||||
* configure.in: (ALL_LINGUAS) Added Bulgarian (bg).
|
||||
|
@ -192,8 +192,8 @@ GPrintFunc g_set_printerr_handler (GPrintFunc func);
|
||||
|
||||
#ifdef G_DISABLE_ASSERT
|
||||
|
||||
#define g_assert(expr) G_STMT_START{ }G_STMT_END
|
||||
#define g_assert_not_reached() G_STMT_START{ }G_STMT_END
|
||||
#define g_assert(expr) G_STMT_START{ (void)0; }G_STMT_END
|
||||
#define g_assert_not_reached() G_STMT_START{ (void)0; }G_STMT_END
|
||||
|
||||
#else /* !G_DISABLE_ASSERT */
|
||||
|
||||
@ -242,8 +242,8 @@ GPrintFunc g_set_printerr_handler (GPrintFunc func);
|
||||
|
||||
#ifdef G_DISABLE_CHECKS
|
||||
|
||||
#define g_return_if_fail(expr) G_STMT_START{ }G_STMT_END
|
||||
#define g_return_val_if_fail(expr,val) G_STMT_START{ }G_STMT_END
|
||||
#define g_return_if_fail(expr) G_STMT_START{ (void)0; }G_STMT_END
|
||||
#define g_return_val_if_fail(expr,val) G_STMT_START{ (void)0; }G_STMT_END
|
||||
#define g_return_if_reached() G_STMT_START{ return; }G_STMT_END
|
||||
#define g_return_val_if_reached(val) G_STMT_START{ return (val); }G_STMT_END
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user