From e4407d4599204f882ea239ad0b15d7633ddfca86 Mon Sep 17 00:00:00 2001 From: Scott D Phillips Date: Mon, 14 Nov 2016 17:02:54 -0800 Subject: [PATCH] Fix some MSVC warnings about const-ness Some miscellaneous warnings about const-ness, either casting away const where we know it's safe or removing const where it's not correct. https://bugzilla.gnome.org/show_bug.cgi?id=774293 --- gst-libs/gst/codecparsers/gstjpegparser.c | 2 +- gst/frei0r/gstfrei0r.c | 2 +- gst/id3tag/id3tag.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/codecparsers/gstjpegparser.c b/gst-libs/gst/codecparsers/gstjpegparser.c index d747a46..d927854 100644 --- a/gst-libs/gst/codecparsers/gstjpegparser.c +++ b/gst-libs/gst/codecparsers/gstjpegparser.c @@ -576,7 +576,7 @@ build_huffman_table (GstJpegHuffmanTable * huf_table, for (i = 0; i < num_entries; i++) sorted_entries[i] = &entries[i]; - qsort (sorted_entries, num_entries, sizeof (sorted_entries[0]), + qsort ((void *) sorted_entries, num_entries, sizeof (sorted_entries[0]), compare_huffman_table_entry); for (i = 0, j = 1, n = 0; i < num_entries; i++) { diff --git a/gst/frei0r/gstfrei0r.c b/gst/frei0r/gstfrei0r.c index e55fb05..6dabf30 100644 --- a/gst/frei0r/gstfrei0r.c +++ b/gst/frei0r/gstfrei0r.c @@ -307,7 +307,7 @@ gst_frei0r_get_property (f0r_instance_t * instance, GstFrei0rFuncTable * ftable, break; } case F0R_PARAM_STRING:{ - const gchar *s; + gchar *s; if (instance) ftable->get_param_value (instance, &s, prop->prop_idx); diff --git a/gst/id3tag/id3tag.c b/gst/id3tag/id3tag.c index 3a602d1..db44892 100644 --- a/gst/id3tag/id3tag.c +++ b/gst/id3tag/id3tag.c @@ -459,7 +459,7 @@ add_text_tag (GstId3v2Tag * id3v2tag, const GstTagList * list, GST_WARNING ("Empty list for tag %s, skipping", tag); } - g_free (strings); + g_free ((gchar **) strings); } static void -- 2.7.4