Move declaration up ahead of active code in the function, so that
this can be built again with gcc 2.95.3, as used by vax.
This commit is contained in:
parent
355013fbd7
commit
34b3f04168
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_command.c,v 1.86 2006/05/10 21:53:16 mrg Exp $ */
|
||||
/* $NetBSD: db_command.c,v 1.87 2006/05/14 14:00:17 he Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -31,7 +31,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.86 2006/05/10 21:53:16 mrg Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.87 2006/05/14 14:00:17 he Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
|
@ -394,11 +394,10 @@ db_command(const struct db_command **last_cmdp,
|
|||
db_expr_t addr, count;
|
||||
boolean_t have_addr = FALSE;
|
||||
int result;
|
||||
static db_expr_t last_count = 0;
|
||||
|
||||
cmd = NULL; /* XXX gcc */
|
||||
|
||||
static db_expr_t last_count = 0;
|
||||
|
||||
t = db_read_token();
|
||||
if ((t == tEOL) || (t == tCOMMA)) {
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue