Fix compiler warnings.
authorMatthias Clasen <mclasen@redhat.com>
Mon, 5 Dec 2005 13:37:55 +0000 (13:37 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 5 Dec 2005 13:37:55 +0000 (13:37 +0000)
2005-12-05  Matthias Clasen  <mclasen@redhat.com>

* tests/libmoduletestplugin_a.c: Fix compiler warnings.

* glib/gatomic.c: In the ia64 implementation, use
__sync builtin without _si or _di suffix.  (#321229,
Stanislav Brabec, patch by Andreas Schwab)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
glib/gatomic.c
tests/libmoduletestplugin_a.c

index 496fae4f877c16845fe89d1ca06b1c6cd53c2ed4..d5e29ffa07f43728470e6fd31ceccc87622ac7dc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-12-05  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gatomic.c: In the ia64 implementation, use
+       __sync builtin without _si or _di suffix.  (#321229,
+       Stanislav Brabec, patch by Andreas Schwab)
+
 2005-12-04  Behdad Esfahbod  <behdad@gnome.org>
 
        * glib/gslice.h: Remove comma at the end of enum.
index 496fae4f877c16845fe89d1ca06b1c6cd53c2ed4..d5e29ffa07f43728470e6fd31ceccc87622ac7dc 100644 (file)
@@ -1,3 +1,9 @@
+2005-12-05  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gatomic.c: In the ia64 implementation, use
+       __sync builtin without _si or _di suffix.  (#321229,
+       Stanislav Brabec, patch by Andreas Schwab)
+
 2005-12-04  Behdad Esfahbod  <behdad@gnome.org>
 
        * glib/gslice.h: Remove comma at the end of enum.
index 496fae4f877c16845fe89d1ca06b1c6cd53c2ed4..d5e29ffa07f43728470e6fd31ceccc87622ac7dc 100644 (file)
@@ -1,3 +1,9 @@
+2005-12-05  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gatomic.c: In the ia64 implementation, use
+       __sync builtin without _si or _di suffix.  (#321229,
+       Stanislav Brabec, patch by Andreas Schwab)
+
 2005-12-04  Behdad Esfahbod  <behdad@gnome.org>
 
        * glib/gslice.h: Remove comma at the end of enum.
index 0d779058f145efa201052b7f6ab4945056088e78..7b191a6ebb866cba7f89c00cfb77b51cf8732120 100644 (file)
@@ -414,14 +414,14 @@ gint
 g_atomic_int_exchange_and_add (volatile gint *atomic,
                               gint           val)
 {
-  return __sync_fetch_and_add_si (atomic, val);
+  return __sync_fetch_and_add (atomic, val);
 }
  
 void
 g_atomic_int_add (volatile gint *atomic, 
                  gint val)
 {
-  __sync_fetch_and_add_si (atomic, val);
+  __sync_fetch_and_add (atomic, val);
 }
 
 gboolean
@@ -429,7 +429,7 @@ g_atomic_int_compare_and_exchange (volatile gint *atomic,
                                   gint           oldval, 
                                   gint           newval)
 {
-  return __sync_bool_compare_and_swap_si (atomic, oldval, newval);
+  return __sync_bool_compare_and_swap (atomic, oldval, newval);
 }
 
 gboolean
@@ -437,8 +437,8 @@ g_atomic_pointer_compare_and_exchange (volatile gpointer *atomic,
                                       gpointer           oldval, 
                                       gpointer           newval)
 {
-  return __sync_bool_compare_and_swap_di ((long *)atomic, 
-                                         (long)oldval, (long)newval);
+  return __sync_bool_compare_and_swap ((long *)atomic, 
+                                      (long)oldval, (long)newval);
 }
 
 #  define G_ATOMIC_MEMORY_BARRIER __sync_synchronize ()
index 5d9f5c0f1b63bb01c195813fe82d89bc5f5c899d..150d50d95aee6e480c490af4330f61cf5d69064d 100644 (file)
@@ -59,13 +59,13 @@ gplugin_say_boo_func (void)
 G_MODULE_EXPORT void
 gplugin_a_module_func (GModule *module)
 {
-  void (*f) (void) = NULL;
+  void *f = NULL;
 
-  if (!g_module_symbol (module, "gplugin_say_boo_func", (gpointer *) &f))
+  if (!g_module_symbol (module, "gplugin_say_boo_func", &f ))
     {
       g_print ("error: %s\n", g_module_error ());
       exit (1);
     }
 
-  f ();
+  ((void(*)(void)) f) ();
 }