From: Nick Clifton Date: Mon, 4 Apr 2005 10:09:54 +0000 (+0000) Subject: Initialise value to zero to avoid a compile time warning. X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=280e9834f6d19b31945bab6120af8f64bc2789f7;p=cgen.git Initialise value to zero to avoid a compile time warning. --- diff --git a/ChangeLog b/ChangeLog index 0c2431e..7be56bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-04-04 Nick Clifton + + * opcodes.scm (-gen-parse-address): Initialise value to zero to + avoid a compile time warning. + 2005-03-18 Nick Clifton * cpu/ip2k.opc (parse_lit8): Change wording of error message to diff --git a/opcodes.scm b/opcodes.scm index 24c5e74..0073ae1 100644 --- a/opcodes.scm +++ b/opcodes.scm @@ -355,7 +355,7 @@ (define (-gen-parse-address parse-fn op-enum result-var-name) (string-append " {\n" - " bfd_vma value;\n" + " bfd_vma value = 0;\n" " errmsg = " ; Use operand's special parse function if there is one. (or parse-fn