Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jun 2009 21:07:54 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r193268 - head/sys/dev/aic7xxx/aicasm
Message-ID:  <200906012107.n51L7slY092073@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Mon Jun  1 21:07:54 2009
New Revision: 193268
URL: http://svn.freebsd.org/changeset/base/193268

Log:
  Initialize the match structure.  This is unnecessary but gcc insists to
  complain about it when we raise the WARNS level.

Modified:
  head/sys/dev/aic7xxx/aicasm/aicasm_scan.l

Modified: head/sys/dev/aic7xxx/aicasm/aicasm_scan.l
==============================================================================
--- head/sys/dev/aic7xxx/aicasm/aicasm_scan.l	Mon Jun  1 21:02:40 2009	(r193267)
+++ head/sys/dev/aic7xxx/aicasm/aicasm_scan.l	Mon Jun  1 21:07:54 2009	(r193268)
@@ -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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906012107.n51L7slY092073>