mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Fix compiler warnings.
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)
This commit is contained in:
parent
a59e49a545
commit
5c32d5236f
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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 ()
|
||||
|
@ -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) ();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user