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; break;
} }
done: done:
/* nothing */ ;
} }
SERVER_END_VAR_REQ; SERVER_END_VAR_REQ;
if (ret) return TRUE; 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 ); process->handles = copy_handle_table( process, parent );
else else
process->handles = alloc_handle_table( process, 0 ); process->handles = alloc_handle_table( process, 0 );
if (!process->handles) goto error; if (!process->handles) return;
/* retrieve the main exe file */ /* retrieve the main exe file */
req->exe_file = 0; 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 ); process->exe.file = (struct file *)grab_object( info->exe_file );
if (!(req->exe_file = alloc_handle( process, process->exe.file, GENERIC_READ, 0 ))) if (!(req->exe_file = alloc_handle( process, process->exe.file, GENERIC_READ, 0 )))
goto error; return;
} }
/* set the process console */ /* 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) if (parent)
{ {
@ -278,7 +278,6 @@ static void init_process( int ppid, struct init_process_request *req )
} }
req->create_flags = process->create_flags; req->create_flags = process->create_flags;
req->server_start = server_start_ticks; req->server_start = server_start_ticks;
error:
} }
/* destroy a process when its refcount is 0 */ /* 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; if (Names[i]->flags & FLAG_NOIMPORT) continue;
/* check for invalid characters in the name */ /* check for invalid characters in the name */
for (p = Names[i]->name; *p; p++) 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", fprintf( outfile, " \"\\t.globl " PREFIX "__wine_dllexport_%s_%s\\n\"\n",
DLLName, Names[i]->name ); DLLName, Names[i]->name );
fprintf( outfile, " \"" PREFIX "__wine_dllexport_%s_%s:\\n\"\n", fprintf( outfile, " \"" PREFIX "__wine_dllexport_%s_%s:\\n\"\n",
DLLName, Names[i]->name ); DLLName, Names[i]->name );
next:
} }
fprintf( outfile, " \"\\t.long 0xffffffff\\n\"\n" ); fprintf( outfile, " \"\\t.long 0xffffffff\\n\"\n" );