[libgnome-volume-control/wip/muktupavels/warnings: 3/5] test-audio-device-selection: fix -Wsign-compare warning



commit c92c2627113d9d32e079c2bce6dc030c55f8e91c
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Dec 25 19:20:46 2019 +0200

    test-audio-device-selection: fix -Wsign-compare warning

 test-audio-device-selection.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/test-audio-device-selection.c b/test-audio-device-selection.c
index b276a8c..4b930a1 100644
--- a/test-audio-device-selection.c
+++ b/test-audio-device-selection.c
@@ -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 < (int) g_strv_length (args)) {
                        response = res;
                        break;
                }


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