mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-12 13:49:22 +01:00
Use "if (expr) { } else" as I meant to in the first place. The other form
* glib/gmessages.h: Use "if (expr) { } else" as I meant to in the first place. The other form can trigger warnings in some compilers that suspect a ";" after "if (expr)" is an error.
This commit is contained in:
parent
efe9b5f5a7
commit
864a14bae3
@ -1,3 +1,9 @@
|
|||||||
|
2002-02-11 Darin Adler <darin@bentspoon.com>
|
||||||
|
|
||||||
|
* glib/gmessages.h: Use "if (expr) { } else" as I meant to in the
|
||||||
|
first place. The other form can trigger warnings in some compilers
|
||||||
|
that suspect a ";" after "if (expr)" is an error.
|
||||||
|
|
||||||
2002-02-11 Manish Singh <yosh@gimp.org>
|
2002-02-11 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* glib/gmessages.h: need statement terminators for the if clauses for
|
* glib/gmessages.h: need statement terminators for the if clauses for
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2002-02-11 Darin Adler <darin@bentspoon.com>
|
||||||
|
|
||||||
|
* glib/gmessages.h: Use "if (expr) { } else" as I meant to in the
|
||||||
|
first place. The other form can trigger warnings in some compilers
|
||||||
|
that suspect a ";" after "if (expr)" is an error.
|
||||||
|
|
||||||
2002-02-11 Manish Singh <yosh@gimp.org>
|
2002-02-11 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* glib/gmessages.h: need statement terminators for the if clauses for
|
* glib/gmessages.h: need statement terminators for the if clauses for
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2002-02-11 Darin Adler <darin@bentspoon.com>
|
||||||
|
|
||||||
|
* glib/gmessages.h: Use "if (expr) { } else" as I meant to in the
|
||||||
|
first place. The other form can trigger warnings in some compilers
|
||||||
|
that suspect a ";" after "if (expr)" is an error.
|
||||||
|
|
||||||
2002-02-11 Manish Singh <yosh@gimp.org>
|
2002-02-11 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* glib/gmessages.h: need statement terminators for the if clauses for
|
* glib/gmessages.h: need statement terminators for the if clauses for
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2002-02-11 Darin Adler <darin@bentspoon.com>
|
||||||
|
|
||||||
|
* glib/gmessages.h: Use "if (expr) { } else" as I meant to in the
|
||||||
|
first place. The other form can trigger warnings in some compilers
|
||||||
|
that suspect a ";" after "if (expr)" is an error.
|
||||||
|
|
||||||
2002-02-11 Manish Singh <yosh@gimp.org>
|
2002-02-11 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* glib/gmessages.h: need statement terminators for the if clauses for
|
* glib/gmessages.h: need statement terminators for the if clauses for
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2002-02-11 Darin Adler <darin@bentspoon.com>
|
||||||
|
|
||||||
|
* glib/gmessages.h: Use "if (expr) { } else" as I meant to in the
|
||||||
|
first place. The other form can trigger warnings in some compilers
|
||||||
|
that suspect a ";" after "if (expr)" is an error.
|
||||||
|
|
||||||
2002-02-11 Manish Singh <yosh@gimp.org>
|
2002-02-11 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* glib/gmessages.h: need statement terminators for the if clauses for
|
* glib/gmessages.h: need statement terminators for the if clauses for
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2002-02-11 Darin Adler <darin@bentspoon.com>
|
||||||
|
|
||||||
|
* glib/gmessages.h: Use "if (expr) { } else" as I meant to in the
|
||||||
|
first place. The other form can trigger warnings in some compilers
|
||||||
|
that suspect a ";" after "if (expr)" is an error.
|
||||||
|
|
||||||
2002-02-11 Manish Singh <yosh@gimp.org>
|
2002-02-11 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* glib/gmessages.h: need statement terminators for the if clauses for
|
* glib/gmessages.h: need statement terminators for the if clauses for
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2002-02-11 Darin Adler <darin@bentspoon.com>
|
||||||
|
|
||||||
|
* glib/gmessages.h: Use "if (expr) { } else" as I meant to in the
|
||||||
|
first place. The other form can trigger warnings in some compilers
|
||||||
|
that suspect a ";" after "if (expr)" is an error.
|
||||||
|
|
||||||
2002-02-11 Manish Singh <yosh@gimp.org>
|
2002-02-11 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* glib/gmessages.h: need statement terminators for the if clauses for
|
* glib/gmessages.h: need statement terminators for the if clauses for
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2002-02-11 Darin Adler <darin@bentspoon.com>
|
||||||
|
|
||||||
|
* glib/gmessages.h: Use "if (expr) { } else" as I meant to in the
|
||||||
|
first place. The other form can trigger warnings in some compilers
|
||||||
|
that suspect a ";" after "if (expr)" is an error.
|
||||||
|
|
||||||
2002-02-11 Manish Singh <yosh@gimp.org>
|
2002-02-11 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* glib/gmessages.h: need statement terminators for the if clauses for
|
* glib/gmessages.h: need statement terminators for the if clauses for
|
||||||
|
@ -193,7 +193,7 @@ GPrintFunc g_set_printerr_handler (GPrintFunc func);
|
|||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
|
|
||||||
#define g_assert(expr) G_STMT_START{ \
|
#define g_assert(expr) G_STMT_START{ \
|
||||||
if (expr); else \
|
if (expr) { } else \
|
||||||
g_log (G_LOG_DOMAIN, \
|
g_log (G_LOG_DOMAIN, \
|
||||||
G_LOG_LEVEL_ERROR, \
|
G_LOG_LEVEL_ERROR, \
|
||||||
"file %s: line %d (%s): assertion failed: (%s)", \
|
"file %s: line %d (%s): assertion failed: (%s)", \
|
||||||
@ -213,7 +213,7 @@ GPrintFunc g_set_printerr_handler (GPrintFunc func);
|
|||||||
#else /* !__GNUC__ */
|
#else /* !__GNUC__ */
|
||||||
|
|
||||||
#define g_assert(expr) G_STMT_START{ \
|
#define g_assert(expr) G_STMT_START{ \
|
||||||
if (expr); else \
|
if (expr) { } else \
|
||||||
g_log (G_LOG_DOMAIN, \
|
g_log (G_LOG_DOMAIN, \
|
||||||
G_LOG_LEVEL_ERROR, \
|
G_LOG_LEVEL_ERROR, \
|
||||||
"file %s: line %d: assertion failed: (%s)", \
|
"file %s: line %d: assertion failed: (%s)", \
|
||||||
@ -245,7 +245,7 @@ GPrintFunc g_set_printerr_handler (GPrintFunc func);
|
|||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
|
|
||||||
#define g_return_if_fail(expr) G_STMT_START{ \
|
#define g_return_if_fail(expr) G_STMT_START{ \
|
||||||
if (expr); else \
|
if (expr) { } else \
|
||||||
{ \
|
{ \
|
||||||
g_log (G_LOG_DOMAIN, \
|
g_log (G_LOG_DOMAIN, \
|
||||||
G_LOG_LEVEL_CRITICAL, \
|
G_LOG_LEVEL_CRITICAL, \
|
||||||
@ -258,7 +258,7 @@ GPrintFunc g_set_printerr_handler (GPrintFunc func);
|
|||||||
}; }G_STMT_END
|
}; }G_STMT_END
|
||||||
|
|
||||||
#define g_return_val_if_fail(expr,val) G_STMT_START{ \
|
#define g_return_val_if_fail(expr,val) G_STMT_START{ \
|
||||||
if (expr); else \
|
if (expr) { } else \
|
||||||
{ \
|
{ \
|
||||||
g_log (G_LOG_DOMAIN, \
|
g_log (G_LOG_DOMAIN, \
|
||||||
G_LOG_LEVEL_CRITICAL, \
|
G_LOG_LEVEL_CRITICAL, \
|
||||||
@ -291,7 +291,7 @@ GPrintFunc g_set_printerr_handler (GPrintFunc func);
|
|||||||
#else /* !__GNUC__ */
|
#else /* !__GNUC__ */
|
||||||
|
|
||||||
#define g_return_if_fail(expr) G_STMT_START{ \
|
#define g_return_if_fail(expr) G_STMT_START{ \
|
||||||
if (expr); else \
|
if (expr) { } else \
|
||||||
{ \
|
{ \
|
||||||
g_log (G_LOG_DOMAIN, \
|
g_log (G_LOG_DOMAIN, \
|
||||||
G_LOG_LEVEL_CRITICAL, \
|
G_LOG_LEVEL_CRITICAL, \
|
||||||
@ -303,7 +303,7 @@ GPrintFunc g_set_printerr_handler (GPrintFunc func);
|
|||||||
}; }G_STMT_END
|
}; }G_STMT_END
|
||||||
|
|
||||||
#define g_return_val_if_fail(expr, val) G_STMT_START{ \
|
#define g_return_val_if_fail(expr, val) G_STMT_START{ \
|
||||||
if (expr); else \
|
if (expr) { } else \
|
||||||
{ \
|
{ \
|
||||||
g_log (G_LOG_DOMAIN, \
|
g_log (G_LOG_DOMAIN, \
|
||||||
G_LOG_LEVEL_CRITICAL, \
|
G_LOG_LEVEL_CRITICAL, \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user