[vlc-commits] Fix gcrypt warning when building win32 application

Luc Saillard git at videolan.org
Mon Jul 18 16:57:33 CEST 2011


vlc/vlc-1.1 | branch: master | Luc Saillard <luc.saillard at sfr.com> | Mon Jul 18 12:05:05 2011 +0200| [5dd01059ecca18a1e50094c70a72006c3332e1da] | committer: Rémi Denis-Courmont

Fix gcrypt warning when building win32 application

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')

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit bd90ac8411f60fbade18ad47ac63b42dd1097916)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=5dd01059ecca18a1e50094c70a72006c3332e1da
---

 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 eec15c2..694c33e 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
 



More information about the vlc-commits mailing list