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:
Matthias Clasen 2005-12-05 13:37:55 +00:00 committed by Matthias Clasen
parent a59e49a545
commit 5c32d5236f
5 changed files with 26 additions and 8 deletions

View 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.

View 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.

View 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.

View 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 ()

View 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) ();
}