Hide false-positive deprecated warning

This commit is contained in:
Patrick Griffis 2017-06-15 00:14:30 -04:00
parent f8467473dd
commit 27fd9b3fd6

View File

@ -177,7 +177,9 @@ static gboolean save_keystore(GKeyFile *keyfile) {
#if !GLIB_CHECK_VERSION(2,40,0)
ok = keyfile_save_to_file (keyfile, filename);
#else
G_GNUC_BEGIN_IGNORE_DEPRECATIONS /* Hide false positive */
ok = g_key_file_save_to_file (keyfile, filename, NULL);
G_GNUC_END_IGNORE_DEPRECATIONS
#endif
g_free (filename);