summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2007-10-22 00:36:28 +0000
committermartin <martin@NetBSD.org>2007-10-22 00:36:28 +0000
commitbb436049fc7dce71f92daaf7a32091e5aa2945ca (patch)
treed9923466e0ce3053173b737595f0dd16fee46d7f /sys
parent7f15a337b223390dc6220676d67793d6293408e4 (diff)
Pacify some gcc uninitialized warnings at -O3
Diffstat (limited to 'sys')
-rw-r--r--sys/ddb/db_command.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index 61cbecd1189..325500c983e 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -1,4 +1,4 @@
-/* $NetBSD: db_command.c,v 1.109 2007/10/19 12:16:41 ad Exp $ */
+/* $NetBSD: db_command.c,v 1.110 2007/10/22 00:36:28 martin Exp $ */
/*
* Mach Operating System
* Copyright (c) 1991,1990 Carnegie Mellon University
@@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.109 2007/10/19 12:16:41 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.110 2007/10/22 00:36:28 martin Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -586,6 +586,7 @@ db_cmd_search(const char *name,const struct db_command *table,
int result;
result = CMD_NONE;
+ *cmdp = NULL;
for (cmd = table; cmd->name != 0; cmd++) {
const char *lp;
const char *rp;
@@ -949,14 +950,14 @@ db_help_print_cmd(db_expr_t addr, bool have_addr, db_expr_t count,
const struct db_cmd_tbl_en_head *list;
const struct db_cmd_tbl_en *list_ent;
- const struct db_command *help;
+ const struct db_command *help = NULL;
int t, result;
t = db_read_token();
/* is there another command after the "help"? */
if (t == tIDENT){
- switch(db_get_list_type(db_tok_string)){
+ switch(db_get_list_type(db_tok_string)) {
case DDB_BASE_CMD:
list=&db_base_cmd_list;
@@ -1048,6 +1049,7 @@ db_help_print_cmd(db_expr_t addr, bool have_addr, db_expr_t count,
return;
}
+
/*ARGSUSED*/
static void
db_map_print_cmd(db_expr_t addr, bool have_addr, db_expr_t count,