[vlc-devel] commit: (file) fix compiler warning about unused label opencnt: ( Jean-Paul Saman )

git version control git at videolan.org
Mon Oct 27 16:23:32 CET 2008


vlc | branch: 0.8.6-bugfix | Jean-Paul Saman <jpsaman at videolan.org> | Fri Oct 24 13:57:35 2008 +0200| [70c5c34a6e8ec40c084064fbfc12487fb670803b] | committer: Jean-Paul Saman 

(file) fix compiler warning about unused label opencnt:

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

 modules/access/file.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/access/file.c b/modules/access/file.c
index 0da4a38..126d01b 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -624,7 +624,6 @@ static int _OpenFile( access_t * p_access, const char * psz_name )
     fseek( p_sys->fd, 0, SEEK_SET );
 #else
 #if defined (WIN32)
-
     if( GetVersion() < 0x80000000 )
     {
         /* for Windows NT and above */
@@ -640,8 +639,8 @@ static int _OpenFile( access_t * p_access, const char * psz_name )
         p_sys->fd = _wopen( wpath, O_NONBLOCK );
         goto opencont;
     }
-
 #endif
+
     const char *psz_localname = ToLocale( psz_name );
     if( psz_localname == NULL )
     {
@@ -652,7 +651,9 @@ static int _OpenFile( access_t * p_access, const char * psz_name )
     p_sys->fd = open( psz_localname, O_NONBLOCK /*| O_LARGEFILE*/ );
     LocaleFree( psz_localname );
 
+#if defined (WIN32)
 opencont:
+#endif
     if ( p_sys->fd == -1 )
     {
         msg_Err( p_access, "cannot open file %s (%s)", psz_name,




More information about the vlc-devel mailing list