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,
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to