[grilo] test-ui: Fix -Wenum-compare



commit 5b60c7458e631cf943603c322ed0076f1ce33a65
Author: veer <bveer428 gmail com>
Date:   Sat Jun 9 19:05:30 2018 +0530

    test-ui: Fix -Wenum-compare
    
    ../tools/grilo-test-ui/main.c: In function ‘supported_media_to_str’:
    ../tools/grilo-test-ui/main.c:905:12: warning: comparison between
    ‘GrlMediaType’ {aka ‘enum <anonymous>’} and ‘enum <anonymous>’
    [-Wenum-compare]
    
       if (type == GRL_SUPPORTED_MEDIA_NONE)
                ^~
    
    ../tools/grilo-test-ui/main.c:907:12: warning: comparison between
    ‘GrlMediaType’ {aka ‘enum <anonymous>’} and ‘enum <anonymous>’
    [-Wenum-compare]
    
       if (type == GRL_SUPPORTED_MEDIA_ALL)
                ^~
    
    https://gitlab.gnome.org/GNOME/grilo/issues/7
    Signed-off-by: Victor Toso <victortoso redhat com>

 tools/grilo-test-ui/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tools/grilo-test-ui/main.c b/tools/grilo-test-ui/main.c
index eaa8a72..4e6f728 100644
--- a/tools/grilo-test-ui/main.c
+++ b/tools/grilo-test-ui/main.c
@@ -898,7 +898,7 @@ add_source_metadata (GtkTreeModel *model,
 }
 
 static char *
-supported_media_to_str (GrlMediaType type)
+supported_media_to_str (GrlSupportedMedia type)
 {
   GString *s;
 


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