Add pragma that will prevent warnings when you are not using -std=99 and
authorChristopher Blizzard <blizzard@redhat.com>
Sun, 9 Dec 2001 23:15:35 +0000 (23:15 +0000)
committerChristopher Blizzard <blizzard@src.gnome.org>
Sun, 9 Dec 2001 23:15:35 +0000 (23:15 +0000)
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.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gmessages.h

index 64a585b..006939d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * glib/gmacros.h: Do the same for "pure".
index 64a585b..006939d 100644 (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>
 
        * glib/gmacros.h: Do the same for "pure".
index 64a585b..006939d 100644 (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>
 
        * glib/gmacros.h: Do the same for "pure".
index 64a585b..006939d 100644 (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>
 
        * glib/gmacros.h: Do the same for "pure".
index 64a585b..006939d 100644 (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>
 
        * glib/gmacros.h: Do the same for "pure".
index 64a585b..006939d 100644 (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>
 
        * glib/gmacros.h: Do the same for "pure".
index 64a585b..006939d 100644 (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>
 
        * glib/gmacros.h: Do the same for "pure".
index 64a585b..006939d 100644 (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>
 
        * glib/gmacros.h: Do the same for "pure".
index 31550a3..6d39e71 100644 (file)
 #include <stdarg.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
 
 /* calculate a string size, guarranteed to fit format + args.