summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-06-01 21:07:54 +0000
committerdelphij <delphij@FreeBSD.org>2009-06-01 21:07:54 +0000
commit47cd93cd05c339642762cd33b1b61c7be8a392ee (patch)
treebe6bbc2ba394309aef69fb0fc828c820e95cfc7b /sys/dev
parent4dbf5c6d11a5d5c567aabcbeabe03c9b4977f4a1 (diff)
downloadFreeBSD-src-47cd93cd05c339642762cd33b1b61c7be8a392ee.zip
FreeBSD-src-47cd93cd05c339642762cd33b1b61c7be8a392ee.tar.gz
Initialize the match structure. This is unnecessary but gcc insists to
complain about it when we raise the WARNS level.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/aic7xxx/aicasm/aicasm_scan.l3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/aic7xxx/aicasm/aicasm_scan.l b/sys/dev/aic7xxx/aicasm/aicasm_scan.l
index 2b9faf0..9dd9894 100644
--- a/sys/dev/aic7xxx/aicasm/aicasm_scan.l
+++ b/sys/dev/aic7xxx/aicasm/aicasm_scan.l
@@ -516,6 +516,7 @@ expand_macro(struct symbol *macro_symbol)
const char *body_head;
const char *body_pos;
const char *next_match;
+ regmatch_t match = { .rm_so = 0, .rm_eo = 0 };
/*
* Due to the nature of unput, we must work
@@ -525,8 +526,6 @@ expand_macro(struct symbol *macro_symbol)
body_head = macro_symbol->info.macroinfo->body;
body_pos = body_head + strlen(body_head);
while (body_pos > body_head) {
- regmatch_t match;
-
next_match = body_head;
match_marg = NULL;
next_substitution(macro_symbol, body_pos, &next_match,
OpenPOWER on IntegriCloud