Permalink
Browse files

win32: fix glib/gwin32.c:481:3: warning: 'g_win32_get_package_install…

…ation_directory' is deprecated (declared at c:/dev/gnome.org/gnome-windows/checkout/glib/git/src/glib/gwin32.c:397): Use 'g_win32_get_package_installation_directory_of_module' instead [-Wdeprecated-declarations]
  • Loading branch information...
1 parent 2d1f0bc commit 6e20e0ff6f57460fdefb98a3747bfc4c001e267c @dieterv committed Sep 11, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 glib/gwin32.c
View
@@ -476,7 +476,11 @@ g_win32_get_package_installation_subdirectory (const gchar *package,
gchar *prefix;
gchar *dirname;
+/* We know g_win32_get_package_installation_directory is deprecated,
+ * don't complain about it in this case */
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
prefix = g_win32_get_package_installation_directory (package, dll_name);
+G_GNUC_END_IGNORE_DEPRECATIONS
dirname = g_build_filename (prefix, subdir, NULL);
g_free (prefix);

0 comments on commit 6e20e0f

Please sign in to comment.