[vlc-devel] [PATCH] logger: Fix warning

Johan Gunnarsson johan.gunnarsson at gmail.com
Sat Jun 15 12:49:31 CEST 2019


logger/journal.c: In function ‘Open’:
logger/journal.c:75:12: warning: return from incompatible pointer type [-Wincompatible-pointer-types]
     return &ops;
            ^~~~
---
 modules/logger/journal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/logger/journal.c b/modules/logger/journal.c
index 83111be107..9e0f6a624e 100644
--- a/modules/logger/journal.c
+++ b/modules/logger/journal.c
@@ -66,7 +66,7 @@ static void Log(void *opaque, int type, const vlc_log_t *meta,
 
 static const struct vlc_logger_operations ops = { Log, NULL };
 
-static vlc_log_cb Open(vlc_object_t *obj, void **sysp)
+static const struct vlc_logger_operations *Open(vlc_object_t *obj, void **sysp)
 {
     if (!var_InheritBool(obj, "syslog"))
         return NULL;
-- 
2.17.1



More information about the vlc-devel mailing list