From 1b298d6a1bc3b4e5c1c701f26e3981cdae4b89eb Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 14 Aug 2009 22:59:47 +0300 Subject: [PATCH] Avoid gcc warning on Windows Avoid "function declaration isn't a prototype" warnings from gcc 4.4 in the Windows-specific code. --- glib/gutils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/gutils.h b/glib/gutils.h index da3da9a..149d496 100644 --- a/glib/gutils.h +++ b/glib/gutils.h @@ -135,7 +135,7 @@ G_CONST_RETURN gchar* G_CONST_RETURN * g_get_system_data_dirs (void); #ifdef G_OS_WIN32 /* This functions is not part of the public GLib API */ -G_CONST_RETURN gchar* G_CONST_RETURN * g_win32_get_system_data_dirs_for_module (void (*address_of_function)()); +G_CONST_RETURN gchar* G_CONST_RETURN * g_win32_get_system_data_dirs_for_module (void (*address_of_function)(void)); #endif #if defined (G_OS_WIN32) && defined (G_CAN_INLINE) && !defined (__cplusplus) @@ -146,7 +146,7 @@ G_CONST_RETURN gchar* G_CONST_RETURN * g_win32_get_system_data_dirs_for_module ( static inline G_CONST_RETURN gchar * G_CONST_RETURN * _g_win32_get_system_data_dirs (void) { - return g_win32_get_system_data_dirs_for_module ((void (*)()) &_g_win32_get_system_data_dirs); + return g_win32_get_system_data_dirs_for_module ((void (*)(void)) &_g_win32_get_system_data_dirs); } #define g_get_system_data_dirs _g_win32_get_system_data_dirs #endif -- 2.7.4