[vlc-devel] commit: Avoid warning (braindead putenv() prototype!) ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue Dec 8 21:05:07 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Dec  8 18:47:51 2009 +0200| [d5618a759866f421981bc8817ab0e0a5e8d06a26] | committer: Rémi Denis-Courmont 

Avoid warning (braindead putenv() prototype!)

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

 modules/gui/qt4/qt4.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp
index b84815e..8705592 100644
--- a/modules/gui/qt4/qt4.cpp
+++ b/modules/gui/qt4/qt4.cpp
@@ -279,7 +279,7 @@ static int Open( vlc_object_t *p_this )
         return VLC_EGENERIC;
     }
     XCloseDisplay( p_display );
-    putenv( "XLIB_SKIP_ARGB_VISUALS=1" );
+    putenv( (char *)"XLIB_SKIP_ARGB_VISUALS=1" );
 #endif
 
     /* Allocations of p_sys */




More information about the vlc-devel mailing list