]> git.sesse.net Git - vlc/commitdiff
Remove dead code (only a buggy getopt could reach this)
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 27 Apr 2009 20:08:53 +0000 (23:08 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 27 Apr 2009 20:08:53 +0000 (23:08 +0300)
src/config/cmdline.c

index cb9076a7a378a6443af5d58dab7fbe7685812820..264f84ed2f9670e21e734439c44b84aeb67b1ad1 100644 (file)
@@ -273,15 +273,14 @@ int __config_LoadCmdLine( vlc_object_t *p_this, int *pi_argc,
 
                     psz_name = p_conf->psz_name;
                 }
-
-               if( p_conf->i_type != CONFIG_ITEM_BOOL && !optarg )
-               {
-                   fprintf( stderr, "Warning: missing argument for option --%s\n", p_conf->psz_name );
-                   fprintf( stderr, "Try specifying options as '--optionname=value' instead of '--optionname value'\n" );
-                   continue;
-               }
-
-
+#ifdef __APPLE__
+                if( p_conf->i_type != CONFIG_ITEM_BOOL && !optarg )
+                {
+                    fprintf( stderr, "Warning: missing argument for option --%s\n", p_conf->psz_name );
+                    fprintf( stderr, "Try specifying options as '--optionname=value' instead of '--optionname value'\n" );
+                    continue;
+                }
+#endif
                 switch( p_conf->i_type )
                 {
                     case CONFIG_ITEM_STRING: