Fix non-Intel/-Alpha version of the G_BREAKPOINT macro to include
authorDaniel Egger <degger@fhm.edu>
Mon, 29 Oct 2001 18:49:28 +0000 (18:49 +0000)
committerDaniel Egger <egger@src.gnome.org>
Mon, 29 Oct 2001 18:49:28 +0000 (18:49 +0000)
2001-10-29  Daniel Egger  <degger@fhm.edu>

* glib/gbacktrace.h: Fix non-Intel/-Alpha version of the
G_BREAKPOINT macro to include <signal.h> and use SIGTRAP.

* glib/gmessages.c: Conditionalise definition of args2
depending on the definition of HAVE_VSNPRINTF to avoid
compiler warning.

* gobject/testgruntime.c
* tests/patterntest.c: Include <string.h> to avoid warnings.

13 files changed:
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/gbacktrace.h
glib/gmessages.c
gobject/testgobject.c
gobject/testgruntime.c
tests/patterntest.c

index fbd12e3..c09eb29 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2001-10-29  Daniel Egger  <degger@fhm.edu>
+
+       * glib/gbacktrace.h: Fix non-Intel/-Alpha version of the 
+       G_BREAKPOINT macro to include <signal.h> and use SIGTRAP.
+
+       * glib/gmessages.c: Conditionalise definition of args2
+       depending on the definition of HAVE_VSNPRINTF to avoid 
+       compiler warning.
+
+       * gobject/testgruntime.c
+       * tests/patterntest.c: Include <string.h> to avoid warnings.
+
 Mon Oct 29 11:29:37 2001  Owen Taylor  <otaylor@redhat.com>
 
        * m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG
index fbd12e3..c09eb29 100644 (file)
@@ -1,3 +1,15 @@
+2001-10-29  Daniel Egger  <degger@fhm.edu>
+
+       * glib/gbacktrace.h: Fix non-Intel/-Alpha version of the 
+       G_BREAKPOINT macro to include <signal.h> and use SIGTRAP.
+
+       * glib/gmessages.c: Conditionalise definition of args2
+       depending on the definition of HAVE_VSNPRINTF to avoid 
+       compiler warning.
+
+       * gobject/testgruntime.c
+       * tests/patterntest.c: Include <string.h> to avoid warnings.
+
 Mon Oct 29 11:29:37 2001  Owen Taylor  <otaylor@redhat.com>
 
        * m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG
index fbd12e3..c09eb29 100644 (file)
@@ -1,3 +1,15 @@
+2001-10-29  Daniel Egger  <degger@fhm.edu>
+
+       * glib/gbacktrace.h: Fix non-Intel/-Alpha version of the 
+       G_BREAKPOINT macro to include <signal.h> and use SIGTRAP.
+
+       * glib/gmessages.c: Conditionalise definition of args2
+       depending on the definition of HAVE_VSNPRINTF to avoid 
+       compiler warning.
+
+       * gobject/testgruntime.c
+       * tests/patterntest.c: Include <string.h> to avoid warnings.
+
 Mon Oct 29 11:29:37 2001  Owen Taylor  <otaylor@redhat.com>
 
        * m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG
index fbd12e3..c09eb29 100644 (file)
@@ -1,3 +1,15 @@
+2001-10-29  Daniel Egger  <degger@fhm.edu>
+
+       * glib/gbacktrace.h: Fix non-Intel/-Alpha version of the 
+       G_BREAKPOINT macro to include <signal.h> and use SIGTRAP.
+
+       * glib/gmessages.c: Conditionalise definition of args2
+       depending on the definition of HAVE_VSNPRINTF to avoid 
+       compiler warning.
+
+       * gobject/testgruntime.c
+       * tests/patterntest.c: Include <string.h> to avoid warnings.
+
 Mon Oct 29 11:29:37 2001  Owen Taylor  <otaylor@redhat.com>
 
        * m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG
index fbd12e3..c09eb29 100644 (file)
@@ -1,3 +1,15 @@
+2001-10-29  Daniel Egger  <degger@fhm.edu>
+
+       * glib/gbacktrace.h: Fix non-Intel/-Alpha version of the 
+       G_BREAKPOINT macro to include <signal.h> and use SIGTRAP.
+
+       * glib/gmessages.c: Conditionalise definition of args2
+       depending on the definition of HAVE_VSNPRINTF to avoid 
+       compiler warning.
+
+       * gobject/testgruntime.c
+       * tests/patterntest.c: Include <string.h> to avoid warnings.
+
 Mon Oct 29 11:29:37 2001  Owen Taylor  <otaylor@redhat.com>
 
        * m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG
index fbd12e3..c09eb29 100644 (file)
@@ -1,3 +1,15 @@
+2001-10-29  Daniel Egger  <degger@fhm.edu>
+
+       * glib/gbacktrace.h: Fix non-Intel/-Alpha version of the 
+       G_BREAKPOINT macro to include <signal.h> and use SIGTRAP.
+
+       * glib/gmessages.c: Conditionalise definition of args2
+       depending on the definition of HAVE_VSNPRINTF to avoid 
+       compiler warning.
+
+       * gobject/testgruntime.c
+       * tests/patterntest.c: Include <string.h> to avoid warnings.
+
 Mon Oct 29 11:29:37 2001  Owen Taylor  <otaylor@redhat.com>
 
        * m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG
index fbd12e3..c09eb29 100644 (file)
@@ -1,3 +1,15 @@
+2001-10-29  Daniel Egger  <degger@fhm.edu>
+
+       * glib/gbacktrace.h: Fix non-Intel/-Alpha version of the 
+       G_BREAKPOINT macro to include <signal.h> and use SIGTRAP.
+
+       * glib/gmessages.c: Conditionalise definition of args2
+       depending on the definition of HAVE_VSNPRINTF to avoid 
+       compiler warning.
+
+       * gobject/testgruntime.c
+       * tests/patterntest.c: Include <string.h> to avoid warnings.
+
 Mon Oct 29 11:29:37 2001  Owen Taylor  <otaylor@redhat.com>
 
        * m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG
index fbd12e3..c09eb29 100644 (file)
@@ -1,3 +1,15 @@
+2001-10-29  Daniel Egger  <degger@fhm.edu>
+
+       * glib/gbacktrace.h: Fix non-Intel/-Alpha version of the 
+       G_BREAKPOINT macro to include <signal.h> and use SIGTRAP.
+
+       * glib/gmessages.c: Conditionalise definition of args2
+       depending on the definition of HAVE_VSNPRINTF to avoid 
+       compiler warning.
+
+       * gobject/testgruntime.c
+       * tests/patterntest.c: Include <string.h> to avoid warnings.
+
 Mon Oct 29 11:29:37 2001  Owen Taylor  <otaylor@redhat.com>
 
        * m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG
index 93b5174..c2f2fcd 100644 (file)
@@ -53,7 +53,8 @@ void g_on_error_stack_trace (const gchar *prg_name);
 #elif defined (__alpha__) && defined (__GNUC__) && __GNUC__ >= 2
 #  define G_BREAKPOINT()       G_STMT_START{ __asm__ __volatile__ ("bpt"); }G_STMT_END
 #else  /* !__i386__ && !__alpha__ */
-#  define G_BREAKPOINT()       G_STMT_START{ raise (5 /* SIGTRAP */); }G_STMT_END
+#include <signal.h> /* For prototype and signal name definition */ 
+#  define G_BREAKPOINT()       G_STMT_START{ raise (SIGTRAP); }G_STMT_END
 #endif /* __i386__ */
 
 G_END_DECLS
index fd6461b..0457bfd 100644 (file)
@@ -473,9 +473,12 @@ g_logv (const gchar   *log_domain,
        const gchar   *format,
        va_list        args1)
 {
-  va_list args2;
   gchar buffer[1025];
   register gint i;
+
+#ifndef  HAVE_VSNPRINTF
+  va_list args2;
+#endif /* !HAVE_VSNPRINTF */
   
   log_level &= G_LOG_LEVEL_MASK;
   if (!log_level)
index e7d5216..fbf5c7c 100644 (file)
  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
+
+#include <string.h>
+
 #undef G_LOG_DOMAIN
 #define        G_LOG_DOMAIN "TestObject"
 #include       <glib-object.h>
 
-
 /* --- TestIface --- */
 #define TEST_TYPE_IFACE           (test_iface_get_type ())
 #define TEST_IFACE(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), TEST_TYPE_IFACE, TestIface))
index e7d5216..fbf5c7c 100644 (file)
  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
+
+#include <string.h>
+
 #undef G_LOG_DOMAIN
 #define        G_LOG_DOMAIN "TestObject"
 #include       <glib-object.h>
 
-
 /* --- TestIface --- */
 #define TEST_TYPE_IFACE           (test_iface_get_type ())
 #define TEST_IFACE(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), TEST_TYPE_IFACE, TestIface))
index f881098..1dc4cfa 100644 (file)
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 02111-1307, USA.
  */
-#include "glib.h"
 
+#include <string.h>
+
+#include "glib.h"
 
 /* keep enum and structure of gpattern.c and patterntest.c in sync */
 typedef enum