Add __extension__ to G_STMT_START to quite gcc -pedantic. (#131899,

Sat Mar 13 23:30:53 2004  Owen Taylor  <otaylor@redhat.com>

        * glib/gmacros.h (G_STMT_START): Add __extension__
        to G_STMT_START to quite gcc -pedantic. (#131899,
        Olivier Biot)
This commit is contained in:
Owen Taylor 2004-03-14 04:36:04 +00:00 committed by Owen Taylor
parent db17e65ba3
commit 2f11709f3b
7 changed files with 37 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Sat Mar 13 23:30:53 2004 Owen Taylor <otaylor@redhat.com>
* glib/gmacros.h (G_STMT_START): Add __extension__
to G_STMT_START to quite gcc -pedantic. (#131899,
Olivier Biot)
Sat Mar 13 23:18:45 2004 Owen Taylor <otaylor@redhat.com> Sat Mar 13 23:18:45 2004 Owen Taylor <otaylor@redhat.com>
* tests/env-test.c (main): Remove critical log handler; * tests/env-test.c (main): Remove critical log handler;

View File

@ -1,3 +1,9 @@
Sat Mar 13 23:30:53 2004 Owen Taylor <otaylor@redhat.com>
* glib/gmacros.h (G_STMT_START): Add __extension__
to G_STMT_START to quite gcc -pedantic. (#131899,
Olivier Biot)
Sat Mar 13 23:18:45 2004 Owen Taylor <otaylor@redhat.com> Sat Mar 13 23:18:45 2004 Owen Taylor <otaylor@redhat.com>
* tests/env-test.c (main): Remove critical log handler; * tests/env-test.c (main): Remove critical log handler;

View File

@ -1,3 +1,9 @@
Sat Mar 13 23:30:53 2004 Owen Taylor <otaylor@redhat.com>
* glib/gmacros.h (G_STMT_START): Add __extension__
to G_STMT_START to quite gcc -pedantic. (#131899,
Olivier Biot)
Sat Mar 13 23:18:45 2004 Owen Taylor <otaylor@redhat.com> Sat Mar 13 23:18:45 2004 Owen Taylor <otaylor@redhat.com>
* tests/env-test.c (main): Remove critical log handler; * tests/env-test.c (main): Remove critical log handler;

View File

@ -1,3 +1,9 @@
Sat Mar 13 23:30:53 2004 Owen Taylor <otaylor@redhat.com>
* glib/gmacros.h (G_STMT_START): Add __extension__
to G_STMT_START to quite gcc -pedantic. (#131899,
Olivier Biot)
Sat Mar 13 23:18:45 2004 Owen Taylor <otaylor@redhat.com> Sat Mar 13 23:18:45 2004 Owen Taylor <otaylor@redhat.com>
* tests/env-test.c (main): Remove critical log handler; * tests/env-test.c (main): Remove critical log handler;

View File

@ -1,3 +1,9 @@
Sat Mar 13 23:30:53 2004 Owen Taylor <otaylor@redhat.com>
* glib/gmacros.h (G_STMT_START): Add __extension__
to G_STMT_START to quite gcc -pedantic. (#131899,
Olivier Biot)
Sat Mar 13 23:18:45 2004 Owen Taylor <otaylor@redhat.com> Sat Mar 13 23:18:45 2004 Owen Taylor <otaylor@redhat.com>
* tests/env-test.c (main): Remove critical log handler; * tests/env-test.c (main): Remove critical log handler;

View File

@ -1,3 +1,9 @@
Sat Mar 13 23:30:53 2004 Owen Taylor <otaylor@redhat.com>
* glib/gmacros.h (G_STMT_START): Add __extension__
to G_STMT_START to quite gcc -pedantic. (#131899,
Olivier Biot)
Sat Mar 13 23:18:45 2004 Owen Taylor <otaylor@redhat.com> Sat Mar 13 23:18:45 2004 Owen Taylor <otaylor@redhat.com>
* tests/env-test.c (main): Remove critical log handler; * tests/env-test.c (main): Remove critical log handler;

View File

@ -191,7 +191,7 @@
*/ */
#if !(defined (G_STMT_START) && defined (G_STMT_END)) #if !(defined (G_STMT_START) && defined (G_STMT_END))
# if defined (__GNUC__) && !defined (__STRICT_ANSI__) && !defined (__cplusplus) # if defined (__GNUC__) && !defined (__STRICT_ANSI__) && !defined (__cplusplus)
# define G_STMT_START (void)( # define G_STMT_START (void) __extension__ (
# define G_STMT_END ) # define G_STMT_END )
# else # else
# if (defined (sun) || defined (__sun__)) # if (defined (sun) || defined (__sun__))