From 662bf991c08b16dea8a36026243b311f6cdb17f1 Mon Sep 17 00:00:00 2001 From: Christopher Blizzard Date: Sun, 9 Dec 2001 23:15:35 +0000 Subject: [PATCH] Add pragma that will prevent warnings when you are not using -std=99 and 2001-12-09 Christopher Blizzard * 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 | 6 ++++++ ChangeLog.pre-2-0 | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-12 | 6 ++++++ ChangeLog.pre-2-2 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ glib/gmessages.h | 6 ++++++ 9 files changed, 54 insertions(+) diff --git a/ChangeLog b/ChangeLog index 64a585b..006939d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-12-09 Christopher Blizzard + + * 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 * glib/gmacros.h: Do the same for "pure". diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 64a585b..006939d 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +2001-12-09 Christopher Blizzard + + * 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 * glib/gmacros.h: Do the same for "pure". diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 64a585b..006939d 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2001-12-09 Christopher Blizzard + + * 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 * glib/gmacros.h: Do the same for "pure". diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 64a585b..006939d 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +2001-12-09 Christopher Blizzard + + * 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 * glib/gmacros.h: Do the same for "pure". diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 64a585b..006939d 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +2001-12-09 Christopher Blizzard + + * 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 * glib/gmacros.h: Do the same for "pure". diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 64a585b..006939d 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +2001-12-09 Christopher Blizzard + + * 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 * glib/gmacros.h: Do the same for "pure". diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 64a585b..006939d 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +2001-12-09 Christopher Blizzard + + * 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 * glib/gmacros.h: Do the same for "pure". diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 64a585b..006939d 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2001-12-09 Christopher Blizzard + + * 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 * glib/gmacros.h: Do the same for "pure". diff --git a/glib/gmessages.h b/glib/gmessages.h index 31550a3..6d39e71 100644 --- a/glib/gmessages.h +++ b/glib/gmessages.h @@ -30,6 +30,12 @@ #include #include +/* 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. -- 2.7.4