[libgnome-volume-control/wip/muktupavels/warnings: 3/3] test-audio-device-selection: fix -Wdiscarded-qualifiers warnings
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnome-volume-control/wip/muktupavels/warnings: 3/3] test-audio-device-selection: fix -Wdiscarded-qualifiers warnings
- Date: Wed, 25 Dec 2019 17:46:30 +0000 (UTC)
commit 183e2989d4b912673d90394dced723949705b53e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Dec 25 19:23:18 2019 +0200
test-audio-device-selection: fix -Wdiscarded-qualifiers warnings
test-audio-device-selection.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/test-audio-device-selection.c b/test-audio-device-selection.c
index 476bc5c..6f84761 100644
--- a/test-audio-device-selection.c
+++ b/test-audio-device-selection.c
@@ -8,7 +8,7 @@
typedef struct {
GvcHeadsetPortChoice choice;
- gchar *name;
+ const char *name;
} AudioSelectionChoice;
static AudioSelectionChoice audio_selection_choices[] = {
@@ -24,7 +24,7 @@ audio_selection_needed (GvcMixerControl *volume,
GvcHeadsetPortChoice choices,
gpointer user_data)
{
- char *args[G_N_ELEMENTS (audio_selection_choices) + 1];
+ const char *args[G_N_ELEMENTS (audio_selection_choices) + 1];
guint i, n;
int response = -1;
@@ -51,7 +51,7 @@ audio_selection_needed (GvcMixerControl *volume,
g_print ("What is your choice?\n");
if (scanf ("%d", &res) == 1 &&
res > 0 &&
- res < g_strv_length (args)) {
+ res < g_strv_length ((char **) args)) {
response = res;
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]