Add pragma that will prevent warnings when you are not using -std=99 and

2001-12-09  Christopher Blizzard  <blizzard@redhat.com>

        * glib/gmessages.h: Add pragma that will prevent warnings when you
        are not using -std=99 and newer gcc compilers.  Patch from Red
        Hat's gtk+ 1.2 rpm.
This commit is contained in:
Christopher Blizzard 2001-12-09 23:15:35 +00:00 committed by Christopher Blizzard
parent 5217cbcd9d
commit 662bf991c0
9 changed files with 54 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
* glib/gmessages.h: Add pragma that will prevent warnings when you
are not using -std=99 and newer gcc compilers. Patch from Red
Hat's gtk+ 1.2 rpm.
2001-12-06 Darin Adler <darin@bentspoon.com> 2001-12-06 Darin Adler <darin@bentspoon.com>
* glib/gmacros.h: Do the same for "pure". * glib/gmacros.h: Do the same for "pure".

View File

@ -1,3 +1,9 @@
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
* glib/gmessages.h: Add pragma that will prevent warnings when you
are not using -std=99 and newer gcc compilers. Patch from Red
Hat's gtk+ 1.2 rpm.
2001-12-06 Darin Adler <darin@bentspoon.com> 2001-12-06 Darin Adler <darin@bentspoon.com>
* glib/gmacros.h: Do the same for "pure". * glib/gmacros.h: Do the same for "pure".

View File

@ -1,3 +1,9 @@
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
* glib/gmessages.h: Add pragma that will prevent warnings when you
are not using -std=99 and newer gcc compilers. Patch from Red
Hat's gtk+ 1.2 rpm.
2001-12-06 Darin Adler <darin@bentspoon.com> 2001-12-06 Darin Adler <darin@bentspoon.com>
* glib/gmacros.h: Do the same for "pure". * glib/gmacros.h: Do the same for "pure".

View File

@ -1,3 +1,9 @@
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
* glib/gmessages.h: Add pragma that will prevent warnings when you
are not using -std=99 and newer gcc compilers. Patch from Red
Hat's gtk+ 1.2 rpm.
2001-12-06 Darin Adler <darin@bentspoon.com> 2001-12-06 Darin Adler <darin@bentspoon.com>
* glib/gmacros.h: Do the same for "pure". * glib/gmacros.h: Do the same for "pure".

View File

@ -1,3 +1,9 @@
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
* glib/gmessages.h: Add pragma that will prevent warnings when you
are not using -std=99 and newer gcc compilers. Patch from Red
Hat's gtk+ 1.2 rpm.
2001-12-06 Darin Adler <darin@bentspoon.com> 2001-12-06 Darin Adler <darin@bentspoon.com>
* glib/gmacros.h: Do the same for "pure". * glib/gmacros.h: Do the same for "pure".

View File

@ -1,3 +1,9 @@
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
* glib/gmessages.h: Add pragma that will prevent warnings when you
are not using -std=99 and newer gcc compilers. Patch from Red
Hat's gtk+ 1.2 rpm.
2001-12-06 Darin Adler <darin@bentspoon.com> 2001-12-06 Darin Adler <darin@bentspoon.com>
* glib/gmacros.h: Do the same for "pure". * glib/gmacros.h: Do the same for "pure".

View File

@ -1,3 +1,9 @@
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
* glib/gmessages.h: Add pragma that will prevent warnings when you
are not using -std=99 and newer gcc compilers. Patch from Red
Hat's gtk+ 1.2 rpm.
2001-12-06 Darin Adler <darin@bentspoon.com> 2001-12-06 Darin Adler <darin@bentspoon.com>
* glib/gmacros.h: Do the same for "pure". * glib/gmacros.h: Do the same for "pure".

View File

@ -1,3 +1,9 @@
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
* glib/gmessages.h: Add pragma that will prevent warnings when you
are not using -std=99 and newer gcc compilers. Patch from Red
Hat's gtk+ 1.2 rpm.
2001-12-06 Darin Adler <darin@bentspoon.com> 2001-12-06 Darin Adler <darin@bentspoon.com>
* glib/gmacros.h: Do the same for "pure". * glib/gmacros.h: Do the same for "pure".

View File

@ -30,6 +30,12 @@
#include <stdarg.h> #include <stdarg.h>
#include <glib/gtypes.h> #include <glib/gtypes.h>
/* Suppress warnings when GCC is in -pedantic mode and not -std=c99
*/
#if (__GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96))
#pragma GCC system_header
#endif
G_BEGIN_DECLS G_BEGIN_DECLS
/* calculate a string size, guarranteed to fit format + args. /* calculate a string size, guarranteed to fit format + args.