[vlc-devel] [PATCH] Fix gcrypt warning when building win32 application

Luc Saillard luc.saillard at sfr.com
Mon Jul 18 12:05:05 CEST 2011


We must defined all members to NULL (select, waitpid, ...)

In file included from gnutls.c:63:
../../include/vlc_gcrypt.h:81: warning: missing initializer
../../include/vlc_gcrypt.h:81: warning: (near initialization for 'gcry_threads_vlc.read')
---
 include/vlc_gcrypt.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/vlc_gcrypt.h b/include/vlc_gcrypt.h
index 4bb14f7..4cf65ac 100644
--- a/include/vlc_gcrypt.h
+++ b/include/vlc_gcrypt.h
@@ -76,7 +76,8 @@ static const struct gcry_thread_cbs gcry_threads_vlc =
     gcry_vlc_mutex_init,
     gcry_vlc_mutex_destroy,
     gcry_vlc_mutex_lock,
-    gcry_vlc_mutex_unlock
+    gcry_vlc_mutex_unlock,
+    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
 };
 #endif
 
-- 
1.7.2.5




More information about the vlc-devel mailing list