Prevent warnings about labels at end of switch statements when

compiling with gcc-3.x.
This commit is contained in:
James Juran 2001-11-19 02:24:14 +00:00 committed by Alexandre Julliard
parent 6e04f591f6
commit 49c779a862
3 changed files with 6 additions and 6 deletions

View File

@ -105,6 +105,7 @@ BOOL WINAPI WaitForDebugEvent(
break;
}
done:
/* nothing */ ;
}
SERVER_END_VAR_REQ;
if (ret) return TRUE;

View File

@ -232,7 +232,7 @@ static void init_process( int ppid, struct init_process_request *req )
process->handles = copy_handle_table( process, parent );
else
process->handles = alloc_handle_table( process, 0 );
if (!process->handles) goto error;
if (!process->handles) return;
/* retrieve the main exe file */
req->exe_file = 0;
@ -240,11 +240,11 @@ static void init_process( int ppid, struct init_process_request *req )
{
process->exe.file = (struct file *)grab_object( info->exe_file );
if (!(req->exe_file = alloc_handle( process, process->exe.file, GENERIC_READ, 0 )))
goto error;
return;
}
/* set the process console */
if (!set_process_console( process, parent, info, req )) goto error;
if (!set_process_console( process, parent, info, req )) return;
if (parent)
{
@ -278,7 +278,6 @@ static void init_process( int ppid, struct init_process_request *req )
}
req->create_flags = process->create_flags;
req->server_start = server_start_ticks;
error:
}
/* destroy a process when its refcount is 0 */

View File

@ -301,12 +301,12 @@ static int output_exports( FILE *outfile, int nr_exports )
if (Names[i]->flags & FLAG_NOIMPORT) continue;
/* check for invalid characters in the name */
for (p = Names[i]->name; *p; p++)
if (!isalnum(*p) && *p != '_' && *p != '.') goto next;
if (!isalnum(*p) && *p != '_' && *p != '.') break;
if (*p) continue;
fprintf( outfile, " \"\\t.globl " PREFIX "__wine_dllexport_%s_%s\\n\"\n",
DLLName, Names[i]->name );
fprintf( outfile, " \"" PREFIX "__wine_dllexport_%s_%s:\\n\"\n",
DLLName, Names[i]->name );
next:
}
fprintf( outfile, " \"\\t.long 0xffffffff\\n\"\n" );