[gtksourceview] win32: silence a warning with Visual Studio



commit 26935653607874b87577f86cf7db4a2de03330a8
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Jun 22 13:26:45 2016 +0200

    win32: silence a warning with Visual Studio
    
    The warning was:
    warning C4090: 'function' : different 'const' qualifiers
    
    But it's normally valid C code, so it's probably a false negative of the
    Visual Studio compiler.

 gtksourceview/gtksourceencoding.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourceencoding.c b/gtksourceview/gtksourceencoding.c
index d0abceb..a9c5982 100644
--- a/gtksourceview/gtksourceencoding.c
+++ b/gtksourceview/gtksourceencoding.c
@@ -672,7 +672,7 @@ gtk_source_encoding_get_default_candidates (void)
 
        encodings_strv = g_variant_get_strv (encodings_variant, NULL);
        encodings_list = strv_to_list (encodings_strv);
-       g_free (encodings_strv);
+       g_free ((gpointer) encodings_strv);
 
        /* Ensure that UTF-8 and CURRENT are present. */
        encodings_list = g_slist_prepend (encodings_list,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]