don't use inline for !__GNUC__ case with g_warning, g_error, and g_message
authorManish Singh <yosh@src.gnome.org>
Wed, 13 Jan 1999 19:30:15 +0000 (19:30 +0000)
committerManish Singh <yosh@src.gnome.org>
Wed, 13 Jan 1999 19:30:15 +0000 (19:30 +0000)
* glib.h: don't use inline for !__GNUC__ case with g_warning,
g_error, and g_message wrappers since some compilers throw
away arguments in this case

-Yosh

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.h
glib/glib.h

index 7863a00..ac3f57f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
+
+       * glib.h: don't use inline for !__GNUC__ case with g_warning,
+       g_error, and g_message wrappers since some compilers throw
+       away arguments in this case
+
 Tue Jan 12 21:59:14 PST 1999 Manish Singh <yosh@gimp.org>
 
        * acinclude.m4
index 7863a00..ac3f57f 100644 (file)
@@ -1,3 +1,9 @@
+Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
+
+       * glib.h: don't use inline for !__GNUC__ case with g_warning,
+       g_error, and g_message wrappers since some compilers throw
+       away arguments in this case
+
 Tue Jan 12 21:59:14 PST 1999 Manish Singh <yosh@gimp.org>
 
        * acinclude.m4
index 7863a00..ac3f57f 100644 (file)
@@ -1,3 +1,9 @@
+Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
+
+       * glib.h: don't use inline for !__GNUC__ case with g_warning,
+       g_error, and g_message wrappers since some compilers throw
+       away arguments in this case
+
 Tue Jan 12 21:59:14 PST 1999 Manish Singh <yosh@gimp.org>
 
        * acinclude.m4
index 7863a00..ac3f57f 100644 (file)
@@ -1,3 +1,9 @@
+Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
+
+       * glib.h: don't use inline for !__GNUC__ case with g_warning,
+       g_error, and g_message wrappers since some compilers throw
+       away arguments in this case
+
 Tue Jan 12 21:59:14 PST 1999 Manish Singh <yosh@gimp.org>
 
        * acinclude.m4
index 7863a00..ac3f57f 100644 (file)
@@ -1,3 +1,9 @@
+Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
+
+       * glib.h: don't use inline for !__GNUC__ case with g_warning,
+       g_error, and g_message wrappers since some compilers throw
+       away arguments in this case
+
 Tue Jan 12 21:59:14 PST 1999 Manish Singh <yosh@gimp.org>
 
        * acinclude.m4
index 7863a00..ac3f57f 100644 (file)
@@ -1,3 +1,9 @@
+Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
+
+       * glib.h: don't use inline for !__GNUC__ case with g_warning,
+       g_error, and g_message wrappers since some compilers throw
+       away arguments in this case
+
 Tue Jan 12 21:59:14 PST 1999 Manish Singh <yosh@gimp.org>
 
        * acinclude.m4
index 7863a00..ac3f57f 100644 (file)
@@ -1,3 +1,9 @@
+Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
+
+       * glib.h: don't use inline for !__GNUC__ case with g_warning,
+       g_error, and g_message wrappers since some compilers throw
+       away arguments in this case
+
 Tue Jan 12 21:59:14 PST 1999 Manish Singh <yosh@gimp.org>
 
        * acinclude.m4
index 7863a00..ac3f57f 100644 (file)
@@ -1,3 +1,9 @@
+Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
+
+       * glib.h: don't use inline for !__GNUC__ case with g_warning,
+       g_error, and g_message wrappers since some compilers throw
+       away arguments in this case
+
 Tue Jan 12 21:59:14 PST 1999 Manish Singh <yosh@gimp.org>
 
        * acinclude.m4
diff --git a/glib.h b/glib.h
index efc9f27..cd4ff5c 100644 (file)
--- a/glib.h
+++ b/glib.h
@@ -1273,7 +1273,7 @@ GLogLevelFlags    g_log_set_always_fatal  (GLogLevelFlags  fatal_mask);
                                               G_LOG_LEVEL_WARNING, \
                                               format, ##args)
 #else  /* !__GNUC__ */
-static inline void
+static void
 g_error (const gchar *format,
         ...)
 {
@@ -1282,7 +1282,7 @@ g_error (const gchar *format,
   g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, args);
   va_end (args);
 }
-static inline void
+static void
 g_message (const gchar *format,
           ...)
 {
@@ -1291,7 +1291,7 @@ g_message (const gchar *format,
   g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, format, args);
   va_end (args);
 }
-static inline void
+static void
 g_warning (const gchar *format,
           ...)
 {
index efc9f27..cd4ff5c 100644 (file)
@@ -1273,7 +1273,7 @@ GLogLevelFlags    g_log_set_always_fatal  (GLogLevelFlags  fatal_mask);
                                               G_LOG_LEVEL_WARNING, \
                                               format, ##args)
 #else  /* !__GNUC__ */
-static inline void
+static void
 g_error (const gchar *format,
         ...)
 {
@@ -1282,7 +1282,7 @@ g_error (const gchar *format,
   g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, args);
   va_end (args);
 }
-static inline void
+static void
 g_message (const gchar *format,
           ...)
 {
@@ -1291,7 +1291,7 @@ g_message (const gchar *format,
   g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, format, args);
   va_end (args);
 }
-static inline void
+static void
 g_warning (const gchar *format,
           ...)
 {